Advertisements
Advertisements
Question
Which command is used to convert text into integer value?
Code Writing
Advertisements
Solution
- The
int()built-in function is used to convert text into an integer value. - Example:
n = int(input("Enter a number: "))
shaalaa.com
Is there an error in this question or solution?
