English

Which command is used to convert text into integer value?

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?
Chapter 1: Review of Phython - EXERCISE [Page 25]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 1 Review of Phython
EXERCISE | Q 7. | Page 25
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×