Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started