+ 1

Why this is not working it is showing invalid syntax at :print (a)? Help me

a=int(input('enter your age to check your) eligibiity:') print(a) if a>=18: print('Congratulations! You are eligible for voting.') else: print('Sorry ! You cannot vote')

1st Jun 2019, 1:58 PM
Sumit Jaiswal
Sumit Jaiswal - avatar
4 ответов
+ 4
Look at the first line. Do you notice something?
1st Jun 2019, 2:03 PM
Anna
Anna - avatar
+ 2
Thanks anna
1st Jun 2019, 2:06 PM
Sumit Jaiswal
Sumit Jaiswal - avatar
+ 1
What
1st Jun 2019, 2:04 PM
Sumit Jaiswal
Sumit Jaiswal - avatar
+ 1
Ya I got it
1st Jun 2019, 2:04 PM
Sumit Jaiswal
Sumit Jaiswal - avatar