Deal with Variables
Another crucial term for coding is variables. The variables are the way of storing information. For instance, here, number = 5, we assign 5 to the variable number. Here, string = 'cat', we assign the string 'cat' to the variable string. There are no special rules; you can create the name of a variable using numbers, special characters, or symbols, but the order is crucial! You can not start the name of a variable with numbers.
By the way, you can output several variables or strings and variables.
12number = 3 print('The number of cats I have is', number)
If you want the message not to be printed, just put the
#sign at the beginning of the string; it is also called comment.
¡Gracias por tus comentarios!
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Pregunte me preguntas sobre este tema
Resumir este capítulo
Mostrar ejemplos del mundo real
Genial!
Completion tasa mejorada a 2.08
Deal with Variables
Desliza para mostrar el menú
Another crucial term for coding is variables. The variables are the way of storing information. For instance, here, number = 5, we assign 5 to the variable number. Here, string = 'cat', we assign the string 'cat' to the variable string. There are no special rules; you can create the name of a variable using numbers, special characters, or symbols, but the order is crucial! You can not start the name of a variable with numbers.
By the way, you can output several variables or strings and variables.
12number = 3 print('The number of cats I have is', number)
If you want the message not to be printed, just put the
#sign at the beginning of the string; it is also called comment.
¡Gracias por tus comentarios!