GoConqr has a new look! Let us know what you think.

Flashcards

Untitled

Ben Donachie English 8 cards

Cards in this deck (8)

  1. 1Ask the user to enter the number and store itnumber = input("Please enter a number: ")
  2. 2Store the number 26 in a variablenumber = 26
  3. 3Multiply 5 and 10 and store it in a variablenumber = 5 * 10
  4. 4Multiply two variable values and store the answer in a variableanswer = int(number1) * int(number2)
  5. 5Check if one variable has a larger value than anotherif number1 > number2 then
    print(number1)
    else
    print(number2)
  6. 6Output stringprint("Hello")
  7. 7Output variable valueprint(number)
  8. 8Output text and variable valueprint("The number is" + str(number))

Information

Description
Flashcards on Untitled, created by Ben Donachie on 02/12/2020.
Created by
Ben Donachie
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?