0

What will be type of an input in Python ?

Python

21st Feb 2018, 1:19 AM
Somnath Mahato
Somnath Mahato - avatar
2 Answers
+ 5
input() by default is a string, but it can be wrapped as others.. for example string=input("Enter a string") integer=int(input("Enter a number"))
21st Feb 2018, 1:42 AM
LordHill
LordHill - avatar
+ 1
input
22nd Feb 2018, 12:12 AM
Hariom singh rdx Rdx ara
Hariom singh rdx Rdx ara - avatar