29 Jul PMCA Saturday 17:00 Python Homework 21.07.24.
Question 1:
Create two variables namely firstname and lastname. Assign them any value you like. Print the value of the variable firstname in one line and the value of the variable lastname in the next line.
Make sure when you print the variables in idle, it looks as below but with the value you set.
Question 2:
Create variable num1 with value “11.12” (Make sure num1 is a string). Also create another variable num2 with value “22.33” (Make sure num2 is also a string). Write code to convert num1 and num2 into an integer and find the sum of both these variables. Make sure the sum is 33.
Sorry, the comment form is closed at this time.