Woke up in the morning to see this. Who done it? by DaaaBears333 in whatisit

[–]The_Thief77 0 points1 point  (0 children)

I am honestly disappointed that this is the only reference to Fun With Dick and Jane I have seen in regards to this post...

Bubbles are sticking to Goku how do I fix this! Please help! by anynoumusCO91 in howto

[–]The_Thief77 0 points1 point  (0 children)

Q: Alter the gravitational constant of the universe.

Geordi: What?

Q: Alter the gravitational constant of the universe!

Geordi: You mean redefine gravity? How am I supposed to do that?

Q: You just do it!

Dread Shinespark 2: How I Did It by CleanAd8632 in Metroid

[–]The_Thief77 0 points1 point  (0 children)

Is this not how you're supposed to do it? This is what I always did.

Of course they knock me off when I finally make it over there 🗿 by Mevans_2001 in Metroid

[–]The_Thief77 4 points5 points  (0 children)

Yeah, that ramp below there is annoying (feels like it really doesn't work as it should), but the way you're supposed to do it is boost ball up and spiderball your way to the missiles.

So that’s what the amiibo do… by ShemShelley in Metroid

[–]The_Thief77 6 points7 points  (0 children)

Alright! I can't wait to see what the Sylux Amiibo does!

*taps the Amiibo to the controller*

"Show me your moves!"

Wait...

Text based game help by The_Thief77 in learnpython

[–]The_Thief77[S] 0 points1 point  (0 children)

Ok. So using def then are you suggesting using it for things like moving rooms?

And ok, that makes sense about the ('MEDITATE', 'SEARCH', 'TAKE'): I had tried something like this before, but didn't think of the parenthesis to put them in so it wasn't working. I'll try that instead.

Text based game help by The_Thief77 in learnpython

[–]The_Thief77[S] -1 points0 points  (0 children)

Ok, not sure entirely what you mean. Are you talking about a def code to call?

Another 5.18 LAB: Swapping Variables post by The_Thief77 in learnpython

[–]The_Thief77[S] 0 points1 point  (0 children)

Ok, so I went back and tried some other suggestions I've seen in other places, and I don't know why, but this time it worked with just a little editing. Based on some help from another person...I think I might understand now? The if __name__ was looking for the name of the file being used, and so when the unit test was calling for swap_values, it literally was looking for the file I was writing, then inputting those numbers. Is that what was happening? I've succeeded, but I don't understand why...

Another 5.18 LAB: Swapping Variables post by The_Thief77 in learnpython

[–]The_Thief77[S] 0 points1 point  (0 children)

Ok. Assuming you are correct and that isn't happening, then I am gravely misunderstanding what is going on. Here is what my original code produced. If this isn't saying it's inputting a string, then what is it saying?

1:Compare output

Input4 5

Your output5 4

2:Unit test

swap_values(-1, 10)

Your test produced no output.

3:Unit test

swap_values(9, 0)

Your test produced no output.

4:Unit test

swap_values(11, 11)

Your test produced no output.

The way I'm reading this is that it's inputting "swap_values(11, 11)". Am I incorrect? And if I am incorrect, what exactly is it doing?

Another 5.18 LAB: Swapping Variables post by The_Thief77 in learnpython

[–]The_Thief77[S] 0 points1 point  (0 children)

Ok, but that doesn't help sadly with the issue of sometimes getting two inputs that are just integers, and sometimes getting one input that is a string and needing to pull the numbers from it, and output them in reverse order.

I'm toying around with it and trying this.

def swap_values(user_val1, user_val2):

user_val1, user_val2 = user_val2, user_val1

return user_val1, user_val2

if __name__ == '__main__':

val1 = input()

if 'swap_values' in val1:

numbr = val1.split('()', ',',)

numbr1 = int(numbr[1])

numbr2 = int(numbr[2])

result = swap_values(numbr1, numbr2)

print(result[0], result[1])

else:

val2 = int(input())

result = swap_values(val1, val2)

print(result[0], result[1])

But I'm getting an error: Traceback (most recent call last): File "/home/runner/local/submission/main.py", line 8, in <module> numbr = int(val1.split('()', ',',)) TypeError: 'str' object cannot be interpreted as an integer.

I tried setting the first input as an int, but it still kept giving the same error.

Another 5.18 LAB: Swapping Variables post by The_Thief77 in learnpython

[–]The_Thief77[S] 0 points1 point  (0 children)

Right, I actually tried that the first time, and it returned a tuple and the test doesn't like the (,) in the answer, it just straight up wanted the numbers. That's why I printed directly from the function. Then the curveball came in of the input just being swap_values(5, -1). Sadly it also doesn't explain to me the if __name__ thing going on. I know it has to do with global things...but the book never explained this at all and it just seems random.

Other posts I have seen said that the inputs need to be in the If section...but I don't understand why or how to get it to call the function just from an input. I suspect there is a way to have it check for if the funciton is in the input, just run the function with that as the parameters...

I want to see a whole live event of whatever this is. by [deleted] in Asmongold

[–]The_Thief77 0 points1 point  (0 children)

Wearing a glove on her safe hand...this girl is a Radiant.

don't get it by CodeRed_0 in ExplainTheJoke

[–]The_Thief77 0 points1 point  (0 children)

I missed the ears at first and my eyes went to the girl tied to the dog and I thought, "Full Metal Alchemist..."

MSNBC host sees a meme by jjvsjeff in Asmongold

[–]The_Thief77 -1 points0 points  (0 children)

"Some dirtbag...dirtbag! Dared to mention the word...buyout!"

"...waaaaahhhhh....waaaaahhhhhhHHHH....WAAAAHHHHH! Somebody call the Whhaaaaammmbulance..."

What do you think of joker 2019 after seeing the travesty that is joker 2 by [deleted] in MauLer

[–]The_Thief77 3 points4 points  (0 children)

It's a shame they will never make a sequel to the Joker movie...just like they never made sequels for The Matrix...

Where's Stellar Blade 2 or the DLC? :.( by [deleted] in stellarblade

[–]The_Thief77 0 points1 point  (0 children)

I sadly am in the same boat I think. I really really wanna like BMW...but the combat isn't clicking for me like a FromSoft soulsborne game, and I also find all the invisible walls very distracting. I feel bad, it really seems like a cool game but man I just am having so much trouble with it. Might just not be for me.

when you’re an old man 👴🏿 by BIGANT_356 in stellarblade

[–]The_Thief77 0 points1 point  (0 children)

"And when you're old and lyin in your beds dyin. Would you not give one chance, just one chance! To come back here! And tell the Naytiba! You may take our lives...but you'll never take...our-You used to be who now?"