मराठी

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×