Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge | Variables in Python
Python Tutorial for Beginners

book
Challenge

Tarefa

Swipe to start coding

Let's complicate the task. Now you need to create 3 variables, namely:

  1. color, give this variable your favourite color.
  2. dish, assign your favorite dish to this variable.
  3. language, assign your language you speak to this variable.

Remember, your variables must be strings(for it you have to use quotes!). After implementing this part, you have to fill the blanks in the displaying results part.

Let's try:)

Solução

color = "pink"
dish = "french fries"
language = "English"

# Displaying results
print("My favourite color is", color)
print("My favourite dish is" , dish)
print("I speak", language)

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

color =
dish =
language =
#displaying results
print("My favourite color is", ___)
print("My favourite dish is" , ___)
print("I speak", ___)

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt