Learn practical skills, build real-world projects, and advance your career
Created 4 years ago
s=[]
for i in range(4):
f = int(input("enter a number"))
s.append(f)
for j in s:
if j%2 == 0:
print(j," is even")
else:
print(j," is odd")
enter a number12
enter a number19
enter a number17
enter a number24
12 is even
19 is odd
17 is odd
24 is even
str = "this is a string"
str
'this is a string'
str1 = '''4
3
2
4'''
str1
'4\n3\n2\n4'