Skip to content

Commit f7df1e7

Browse files
authored
Variables and Methods
1 parent b669755 commit f7df1e7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Variables and Methods

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/python3
2+
3+
quote = "I do not know how to code in python"
4+
5+
print(quote)
6+
7+
print(quote.lower())
8+
9+
print(quote.upper())
10+
11+
print(quote.title())
12+
13+
print(len(quote))
14+
15+
name = "Iqra" # String
16+
age = 25 # Integer
17+
Score = 3.7 # float
18+
print("My name is "+name+" and I am " +str(age)+ " years old.")
19+
print("My name is "+name+" and I am " +str(age)+ " years old.")
20+
print("My name is "+name+" and I am " +str(age)+ " years old.")
21+
print("My name is "+name+" and I am " +str(age)+ " years old.")
22+
print("My name is "+name+" and I am " +str(age)+ " years old.")
23+
print("My name is "+name+" and I am " +str(age)+ " years old.")
24+
25+
26+
age+=1
27+
print(age)
28+
29+
30+
31+
birthday = 1
32+
age += birthday
33+
print(age)

0 commit comments

Comments
 (0)