¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Computer Science- flash cards

Chelsea Chingo Inglés 8 fichas

Fichas del conjunto (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)

Información

Descripción
Fichas sobre Computer Science- flash cards, creado por Chelsea Chingo el 02/12/2020.
Creado por
Chelsea Chingo
Visitas
3
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?