Last active
August 3, 2023 23:36
-
-
Save TheMuellenator/cbcd9cbc2d2c36b652ca1337248b8201 to your computer and use it in GitHub Desktop.
Python Variables Coding Exercise Solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test(A, B): | |
a = A | |
b = B | |
# TODO: Below this comment write your code. | |
c = a | |
a = b | |
b = c | |
# Leave this line alone as well | |
return (a, b) |
solved same way
@hangginny @Elelu Do you leave the indentation before the three lines of your answer?
Same here. I have the same solution but getting the error message
a, b = b, a #this is a more Python-specific way to do this
I did it this way:
a, b = b, a
same issue did it this way and im getting an error
the inbuilt udemt checker doesn't work I had that exact code and it keeps saying error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had this solution but for some reason when I checked, there were error messages..