TORONTO KIDS COMPUTER CLUB | PMCA Saturday 17:00 Python Homework 21.07.24.
19755
post-template-default,single,single-post,postid-19755,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Saturday 17:00 Python Homework 21.07.24.

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.

No Comments

Sorry, the comment form is closed at this time.