Karteikarten
Ohne Titel
Karten in diesem Stapel (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))
Informationen
- Beschreibung
- Karteikarten am Ohne Titel, erstellt von Ben Donachie am 02/12/2020.
- Erstellt von
- Ben Donachie
- Aufrufe
- 0
- Bewertung