+ 1
What is wrong with a code? Please, explain, I donāt get it š
6 Answers
+ 2
input() accept as string form. So need convertion to desired type..
To convert to int value use int()
a = int( input() )
+ 2
Remember that input() returns a string. If you want to use it as a number, you need to convert it, for example
a = int(input())
+ 2
Thanks!)
+ 1
To use an inpit for a number use a=int(input())
0
Oh, thank you so much, I finally got it!)