Python - Standard Library Usage
You want to calculate the area of a circle with radius 7 using Python. Which code correctly uses math operations to do this?
import math radius = 7 area = ? print(area)
import math radius = 7 area = ? print(area)
math.pi for π and radius ** 2 for radius squared, so math.pi * (radius ** 2).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions