Quiz: Python Arithmetic

Instructions

Complete the following exercises and submit your code:

# Write a Python program to get the the volume of a sphere with radius 8.

pi = 3.1415926535897931
r= 8.0
V= 
print('The volume of the sphere is: ',V)

# Modulo Operator with integers

# 1. Print the modulo 2 of 'x'
x = 23

# 2. Print the modulo 5.5 of 'y'
y = 12.5

Leave a Reply