Question: PARTICIPATION ACTIVITY 1 . 3 . 1 1 : Converting user input to integers. Type a statement that converts the string ' 1 5 '

PARTICIPATION
ACTIVITY
1.3.11: Converting user input to integers.
Type a statement that converts the string '15' to an integer and assigns my_var with the result.
Show answer
Correct
myvar= int ('15')
Input must be converted to an integer if using the input in a calculation.
Complete the code so that new_var is equal to the entered number plus 5.
myvar= int ( input ())
new_var =
Incorrect
Perform the addition.
Feedback?
 PARTICIPATION ACTIVITY 1.3.11: Converting user input to integers. Type a statement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!