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
Feedback
- Is there anything we can help with up to this point? Do you have something to suggest about this chapter? Let us know in the comments below.
5 replies on “Quiz: Python Arithmetic”
i dont understand arithmetic
Google is your friend!
its better to put an example to one solution for quiz
i didn’t understand how is the way to put the solution.
many thanks.
You can see an example of a solution submission on the updated Python Strings lesson: https://athena.socialhackersacademy.org/quizzes/quiz-python-strings/
The point is to use the right formula. i.e., “the volume of sphere” instead of “area of circle” 🙂