The variable type of positive or negative whole numbers
What is Integer
Greater than or equal to in python
What is ">="
Needed to perform operations like square root, trig, and logarithms
What is "from math import *"
Python escape character
What is "\" (Backslash)
a = "True"
What is String
Boolean operator that reverses
What is "not"
Result of:
26//3
Character used to write comments
What is # (or ''')
Number that is used in multiple variable types
What is "1"
Order that python solves boolean operators
What is not, and, or
Python outputs trig functions in...
What is radians
F-string format to spread "Hello" across 10 spaces with the text to the left
What is:
print(f"{"Hello" :>10}")
The error of the code:
(int("73.5") - float("2")) * 5
What is: int("73.5")
Output of:
a = 15
if not(a != 30 or a>15):
print("True")
else:
print("False")
What is "False"
Value of a in:
a = 3 b = 2 c = 7
a += c
a *= b
a = a**3
What is "8000"
Output of:
c = "Howdy"
d = "Aggies"
print(f"{c}{d}")
Output of:
(float("3.2") + int("4")) / 2
What is "3.6"
Output of:
a = 5
if a > 7 or a % 2 == 1:
print("Howdy")
elif a < 7 and a//2 == 0:
print("Reveille")
else:
print("TAMU")
What is "Howdy"
Result of:
b = (sin(pi/2))*2 + cos(pi) - (1/sqrt(16))
if b < 0:
print("The answer is negative")
elif b < 1:
if b < 0.5:
print("The answer is between 0 and 0.5")
elif b == 0.5:
print("The answer is 0.5")
else:
print("The answer is between 0.5 and 1")
else:
print("The answer is positive and greater than 1")
What is "The answer is between 0.5 and 1"
Output of:
quarter = 25
dime = 10
print(f"The values of some US coins are: \n\tDime: {dime:.2f} cents\tQuarters: {quarter:.2f} cents")
What is:
The values of some US coins are:
Dime: 10.00 cents Quarters: 25.00 cents