Fichas
Sin título
Fichas del conjunto (8)
- 1Ask the user to enter the number and store itnumber = input("Please enter a number: ")
- 2Store the number 26 in a variablenumber = 26
- 3Multiply 5 and 10 and store it in a variablenumber = 5 * 10
- 4Multiply two variable values and store the answer in a variableanswer = int(number1) * int(number2)
- 5Check if one variable has a larger value than anotherif number1 > number2 then
print(number1)
else
print(number2) - 6Output stringprint("Hello")
- 7Output variable valueprint(number)
- 8Output text and variable valueprint("The number is" + str(number))
Información
- Descripción
- Fichas sobre Sin título, creado por Ben Donachie el 02/12/2020.
- Creado por
- Ben Donachie
- Visitas
- 0
- Valoración