Advertisements
Advertisements
प्रश्न
Which command is used to convert text into integer value?
कोड लेखन
Advertisements
उत्तर
- The
int()built-in function is used to convert text into an integer value. - Example:
n = int(input("Enter a number: "))
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
