+ 1

What is wrong with a code? Please, explain, I donā€™t get it šŸ˜­

https://code.sololearn.com/cMeW7X0Jpmsl/?ref=app

16th Oct 2022, 5:55 PM
ŠŸŠ¾Š»ŠøŠ½Š°Š”
6 Answers
+ 2
input() accept as string form. So need convertion to desired type.. To convert to int value use int() a = int( input() )
16th Oct 2022, 6:02 PM
Jayakrishna šŸ‡®šŸ‡³
+ 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())
16th Oct 2022, 6:02 PM
Lisa
Lisa - avatar
+ 2
Thanks!)
18th Oct 2022, 3:49 AM
ŠŸŠ¾Š»ŠøŠ½Š°Š”
+ 1
To use an inpit for a number use a=int(input())
17th Oct 2022, 5:09 PM
Nordi Kid
0
Oh, thank you so much, I finally got it!)
16th Oct 2022, 6:04 PM
ŠŸŠ¾Š»ŠøŠ½Š°Š”