-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
43 lines (35 loc) · 840 Bytes
/
app.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
print("Hello World")
print(" /|")
print(" / |")
print(" / |")
print("/___|")
character_name = "Naga"
character_age_int = 35
character_age = "35"
is_male = True
is_female = False
print("There once was a man named " + character_name + " , ")
print("he was " + character_age +" years old.")
character_name = "Agastya"
print("He really liked the name "+character_name+" , ")
print("but did not like being " + character_age + " .")
phrase = "Python Academy"
print(phrase)
print(phrase + " is cool")
print(phrase.lower())
print(phrase.upper())
print(phrase.upper().isupper())
print(phrase)
print(len(phrase))
print(phrase[0])
print(phrase[3])
print(phrase.index("Acad"))
print(phrase.index("P"))
print(phrase.replace("Python","Advanced Python"))
print(2)
print(2.08797)
print(-2.08797)
print(10+2)
print(10-2)
print(10*2)
print(10/2)