हिंदी

Which command is used to convert text into integer value?

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Review of Phython - EXERCISE [पृष्ठ २५]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 1 Review of Phython
EXERCISE | Q 7. | पृष्ठ २५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×