Flashcards
Sem título
Flashcards do conjunto (8)
- 1Ask the user to enter a number and store that number in a variableprint("Please input a number")
number =input() - 2Store the number 26 in a variablenumber = 26
- 3Multiply 5 by 10 and store the answer in a variablenum1=5
num2=10
answer = num1 * num2
answer=50 - 4Multiply two variable values and store the answer in a variablecalculation = num1 * num2
answer = input() - 5Check if the value of one variable is larger than another variable (using an if statement and the > symbol)if num1 > num2
num1 = larger - 6Output text (string) to the userinput=(string)
- 7Output the value of a variable to the uservalue = print to (user)
- 8Output the text AND the value of the variable on one line, by using concatenation (+)print("Your number is: "+ (Number.length))
Informações
- Descrição
- FlashCards sobre Sem título, criado por Maison Turner em 29-11-2020.
- Criado por
- Maison Turner
- Visualizações
- 1
- Avaliação