0
How to give null value to a variable?
x=int(input()) y=int(input()) try: z=input() finally : userList = [x,y,z] sum = 0 for num in userList: a=int(num) if(a%2 == 0): sum += int(num) print(sum)
1 Odpowiedź
+ 2
Z=input()or 0
x=int(input()) y=int(input()) try: z=input() finally : userList = [x,y,z] sum = 0 for num in userList: a=int(num) if(a%2 == 0): sum += int(num) print(sum)