Question: The codes given below are in the format of Python 3.7. Problem 1 (1 point): Write code to print the following shape to the console:
The codes given below are in the format of Python 3.7. Problem 1 (1 point): Write code to print the following shape to the console: Tip: you can do it in three lines of output instead of a single function Tip: Just find a way to print result, you do not need loop for this problem. But It is okay if you use a loop. ****** Problem 2 (1 point): Arithmetic operator - write python code to give results of the following expressions. Define a = 9 and b = 4 in python and calculate the following. (1) Addition of a and b (2) Subtraction of a and b (3) Multiplication of a and b (4) Division(float) of a and b (5) Division(floor) of a and b (6) Modulo of a and b Problem 3 (2 points): logical operator - write python code to give results of True or False for each question below. (1) (5*3) > 10) and ((4+6)=11) (2) (5*(3 > 10)) and (4 + (6=11)) (3) ((((5*3) > 10) and 4)+6)=11 (4) ((5*3) > (10 and (4+6)))=11 Problem 4 (2 points): Write code to achieve the following task: given a numeric number, if it is odd, then print this is an odd number, else print "this is an even number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
