Laboratory Assignments
Lab 1
Lab 2
Input in Python:
- For integers use: int(input("user prompt "))
- For floats use: float(input("user prompt "))
- For strings use: input("user prompt ") and when inputing the string
you must enclose it in double or single quotes
- For formatted output use function format.
- For example, to print only 2 decimal digits of the number
1232.566777 use the
following statement:
print(format(1232.566777, '.2f'))
- For example, to print only 4 decimal digits of the number 1232.566777
use the
following statement:
print(format(1232.566777, '.4f'))
Sept 9 Lab Practice
Sept 11 Lab
Practice
test 1 prep part
1
test 1 prep part
2
if-else
practice lab Part 1