Professional Documents
Culture Documents
v1.py Initalcode.py
3.py v2.py
Chrome
X=int(input(("please provide any
1
input or 0 to terminate\n"))
2 while x
i f(x%2==0)
4 print(X, "is an even
number")
5 else:
6 print(x,
"
is an odd
number")
7 X int (input("please
=
9 print("You entered 0,
program will exit now. ")
10 break
tor Problem Visualise View Plot
Chrome
my_dict = {'a' : 'one', 'b'
'two', 'c': 'third', d:
'fourth'}
,'c':'three'}
print( '0riginal dictionary ='
, my_dict)
my_dictb']="changed
print("dictionary after change
,my_dict)
my_dict.clear(O
print('after clearing the
dictionary =,my_dict)
TS ESC101 2122
int(input("Enter a number
:\n")):
COunt = 1;
while(count<=10)
print(f"{count} X {num} =
count*num}");
Count=count+1;
print("done")
itor Problem Visualise View Plot