• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Is there an equivalent to switch in python

P

python
13th Apr 2020, 9:05 AM
Andrei I
Andrei I - avatar
3 Answers
0
Kind of, not sure what you are meaning. But this will work a = 3 b = 4 (a, b) = (b, a) effectively switches values in variables
13th Apr 2020, 12:01 PM
Slick
Slick - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
How do I spawn random obstacles in my game if I'm using canvas?
2 Votes
Negative indexed, while positive indexed, slices
1 Votes
How to do a game
0 Votes
GitHub
0 Votes
How do I make a button that teleports to an other part of code
0 Votes
the language in Arabic is wrong the English words with the Arabic words make faults please fix this problem fastest you can
1 Votes
Hey Guys, How to learn PHP in sololearn???
0 Votes
CSS syntax
0 Votes
ÂżCĂłmo puedo aprender esto no entiendo del todo?
0 Votes
How to save and view a C# file in Notepad++?
0 Votes