Answer:
OC
Explanation:
They were adapted from the Coleco company.
Answer:
Answered below
Explanation:
# Program is written in Python programming language
conditioner_in_ml = 0
width = float(input("Enter width in inches: "))
height = float(input("Enter height in inches: "))
length = float (input("Enter length in inches: "))
#Calculate the volume
volume = width * length * height
#Calculate the amount of conditioner per 100 #cubic inches of volume
conditioner_in_ml = volume/ 100
print("The amount of conditioner required for $volume cubic inches is $conditioner_in_ml ml")
Answer:
This program is written using Python programming language
The program doesn't make use of comments
See attachment for proper format of the program
def count_to_three():
print("One")
print("Two")
print("Three")
count_to_three()
Explanation:
The first line of the program defines the function count_to_three() with no parameters, passed to it
Line 2 to 4 of the program is indent and each line make use of print() function
Line 2 prints "One", Line 3 prints "Two" and Line 4 prints "Three" without quotes
The last line of the program calls the defined function
I'm pretty sure its true not 100% thoe
Answer:
from random import randint
num = randint(1,10)
count =0
while count<3:
userNum = int(input("Guess a Number "))
if num ==userNum:
print("You won")
break
else:
print("Wrong try again")
count = count+1
Explanation:
Import randint from random
generate a random number between (1,10) and assign to num
create a loop control variable count set to 0
In a While statement with the condition count<3 prompt user to make a guess
if guess is correct print you won and break
else print wrong try again and increase count by 1