Terms/Functions or Definition
Area of Circle""" Python Intro Assignment #2 name student number """ #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
Volcabuary
Countdown Machineuser_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 #print(number) print (countdown_string) |
Cheatography
https://cheatography.com
Python Ratchadarin Cheat Sheet by ratchanew
Include all the functions, vocabulary and other important concepts you have learned in Python so far.
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets