Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Variable Name Fixer | Variable and Assignment Mistakes
Common Python Mistakes and How to Fix Them

bookChallenge: Variable Name Fixer

Aufgabe

Swipe to start coding

Complete the function fix_variable_names to correct variable naming and assignment issues in the code.

  • Rename any variables that use invalid names (such as those starting with a digit or containing spaces).
  • Change any variables that use reserved Python keywords as names.
  • Fix any accidental overwrites of variables that should remain distinct.
  • Ensure all variable names follow Python naming conventions.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

Awesome!

Completion rate improved to 5.26

bookChallenge: Variable Name Fixer

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Complete the function fix_variable_names to correct variable naming and assignment issues in the code.

  • Rename any variables that use invalid names (such as those starting with a digit or containing spaces).
  • Change any variables that use reserved Python keywords as names.
  • Fix any accidental overwrites of variables that should remain distinct.
  • Ensure all variable names follow Python naming conventions.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

some-alt