TORONTO KIDS COMPUTER CLUB | PMCA Saturday 17:00 Python Homework 21.05.22.
19495
post-template-default,single,single-post,postid-19495,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.05.22.

25 May PMCA Saturday 17:00 Python Homework 21.05.22.

Question 1:

Create two variables named fname and lname . Assign your firstname to the variable fname and your lastname to the variable lname. 

 Print the addition of the variable fname and variable lname


Question 2:

 Create two numbers num1 and num2. Assign any number to variable num1 and num2. Print the addition, subtraction , division and multiplication of the variables num1 and num2.

Hint:

 Below is an example on how you can create the variable in python

>>> x = 10
>>> y = 20
>>> fruit = 'apple'
>>> animal = 'monkey'
No Comments

Sorry, the comment form is closed at this time.