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'
Sorry, the comment form is closed at this time.