Question: # 1 . Create a variable named num _ 1 and assign 2 8 to it ( 1 pt . ) . # 2 .
# Create a variable named num and assign to it pt
# Create a variable named num and assign to it pt
# Add num to num and store it in ansone, print ansone pts
# Subtract num from num and store it in anstwo, print anstwo pts
# Multiply num by num and store it in ansthree, print ansthree pts
# Divide num by num and store it in ansfour, print ansfour pts
# Use the integer division operator to divide num by num and store it in
ansfive, print ansfive pts
# Return the remainder of num divided by num and store it in anssix, print
anssix pts
# Use the isinteger method to check if num is an integer and print the value
returned by the method pts
num # DO NOT DELETE OR MODIFY THIS LINE OF CODE
# Use the pow function to print out raised to the power of pt
# Print num so that decimal places are displayed and it is grouped by
thousands pt
num # DO NOT DELETE OR MODIFY THIS LINE OF CODE
# Write a print statement using an fstring that prints out the following
sentence using the variables defined below.
# In Australia had a population of and a life expectancy of
years. The round function
# should not be used pts
year # DO NOT DELETE OR MODIFY THIS LINE OF CODE
population # DO NOT DELETE OR MODIFY THIS LINE OF CODE
expectancy # DO NOT DELETE OR MODIFY THIS LINE OF CODE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
