Terms/Functions or Definition
Area of Circle
Python Intro Assignment #2
#Ask the user for a radius of a circle
user_radius = input("What is a radius of a circle?")
#Convert the given radius to a floating point
radius = float(user_radius)
#Make a variable called pi
pi = float(3.1415)
#Calculate the area of the circle using exponents
area = pi(radius*2)
#Display the area of the circle to the user
print ("The area of the circle is", area)
Covert Decimal to Binary
Multiplication and Exponents
user_number = input("What number do you want to count down? ")
number = int(user_number)
countdown_string = ' '
while number > 0:
countdown_number = countdown_string + str(number) + " "
number = number - 1
Python Ratchadarin Cheat Sheet by ratchanew
Include all the functions, vocabulary and other important concepts you have learned in Python so far.