What is int(input()) function and str(input())function ?what is use of them.? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is int(input()) function and str(input())function ?what is use of them.?

Plz help me.... plz describe as much u can

19th Aug 2020, 1:12 AM
#challenger mg
#challenger mg - avatar
2 Answers
+ 4
There Is no need to use str(input())function ,python by default take value as a string. But for interger input use int(input()) function .
19th Aug 2020, 1:38 AM
AB💞
AB💞 - avatar
+ 2
It formats input to int and str type
19th Aug 2020, 1:21 AM
Sean
Sean - avatar