-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
26 lines (24 loc) · 764 Bytes
/
Copy pathtest.py
File metadata and controls
26 lines (24 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# from math import *
# character_age="49"
# character_name="Thomas"
# print("Hello World, there was once a man named " + character_name + ",")
# print("He was " + character_age + " years old.")
# print("He really liked the name " + character_name + ",")
# print("But didn't like being " + character_age)
# print("\n")
# phrase="Testing MY NEW knowledge of Python"
# print(phrase)
# print(phrase.lower())
# print(phrase.upper())
# print(phrase.isupper())
# print(phrase.upper().isupper() + len(phrase))
# print(phrase[9])
# print(phrase.index("P"))
# print(phrase.replace("MY", "YOUR"))
# print("\n")
# print(floor(3.7))
test = -5
sentence = "i love Food And I wAnT tO EaT"
print(abs(test))
print(sentence.upper())
print(sentence.lower())