English

Give the output of the following when num1 = 4, num2 = 3, num3 = 2. num1 = float(10) print (num1) - Computer Science (Python)

Advertisements
Advertisements

Question

Give the output of the following when num1 = 4, num2 = 3, num3 = 2.

num1 = float(10)
print (num1)

Short Note

Solution

num1 = float(10)

float(10) will convert the integer value to float value and therefore, the output will be 10.0.

shaalaa.com
Variables
  Is there an error in this question or solution?
Chapter 5: Getting Started with Python - Exercise [Page 117]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 5 Getting Started with Python
Exercise | Q 7. h) | Page 117
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×