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

Flashcards

Computer Science- flash cards

Chelsea Chingo English 8 cards

Cards in this deck (8)

  1. 1enter a number and store that number in a variablex=3
    name = "Bob"
  2. 2Store the number 26 in a variablenumber = 26
  3. 3Multiply 5 by 10 and store the answer in a variablenumber= 5*10
    print(number)
  4. 4Multiply two variable values and store the answer in a variablenum1= 7
    num2 = 3
    tot=num1*num2
  5. 5Check if the value of one variable is larger than another variable (using an if statement and the > symbol) (e.g. balance of your card)if num1 > num2 then
    print ("Ok, good you have money in your card")
    else:
    print ("Money is needed in this card")
  6. 6Output text (string) to the userprint("Hi, how are you")
  7. 7Output the value of a variable to the user
  8. 8Output the text AND the value of the variable on one line, by using concatenation (+)name=input ("Enter your name: ")
    print("Hi " + name)

Information

Description
Flashcards on Computer Science- flash cards, created by Chelsea Chingo on 02/12/2020.
Created by
Chelsea Chingo
Views
3
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?