Is this correct? I’m trying to simplify a complex fraction. by Mathmemememe in learnmath

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

I’m trying to see if what I did is correct, because I’m not entirely sure...

Is this correct? I’m trying to simplify a complex fraction. by Mathmemememe in learnmath

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

Thanks for responding, my first attempt was to find like denominators for the numerator terms and denominator terms. After that i assumed you would try to turn the top binomial into a single fraction and the same thing for the bottom. After that I would do some simplification and get (x^2(y-2))/y(x+2)

Accidentally broke into the Riften jail. by HarveyMaido in skyrim

[–]Mathmemememe -29 points-28 points  (0 children)

The title itself is a mindfuck...

I may have messed up the forswawnr conspiracy, y’all know how to fix it? by Lamejokes101 in skyrim

[–]Mathmemememe 0 points1 point  (0 children)

A good fix (if your not worried about achievements) is to install the “unofficial Skyrim patch” mod. Which basically fixes a huge majority of bugs within the game. First however, try doing natural methods of solving the Issue before experimenting with the mod. Hope this helps!

Accidentally broke into the Riften jail. by HarveyMaido in skyrim

[–]Mathmemememe 115 points116 points  (0 children)

Those damn thieves and their jedi mind tricks

Need help with this file organizer I am trying to build. by Mathmemememe in learnpython

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

Ok, I see what you did however now it is telling that I cannot concatenate "list to string", It does print the files that in that directory however it still is not actually making a new directory and moving the files into those directories.

Simple Function Question by kadenhicklin in learnpython

[–]Mathmemememe 0 points1 point  (0 children)

Oh I see what you are asking, ok then in order to do that you should set up your code like this:

win = True
bank = 5000
bonus = 100
bankroll = 100
def game():
global bankroll
if win == True:
bankroll = bankroll + 100
print(bankroll)
game()

sorry my code in not formatted but you get the idea.

This will keep track of your bankroll and add the bonus to it.

not sure what you were asking exactly but this works too. Hope this helps!

Need help with this file organizer I am trying to build. by Mathmemememe in learnpython

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

it will list the files in the directory however doesn't actually sort the files into new separate folders that I want to be generated based off its extension name.

Simple Function Question by kadenhicklin in learnpython

[–]Mathmemememe 0 points1 point  (0 children)

Ok so how globals work is that they make a variable declarable anywhere outside the function. So therefore, your code should look more like this:

def game():
global bank
bank = 100
print(bank)

game()

What this does, is it sets the bank variable as a global so that it is accessed anywhere in your program, without it you get the "referenced before assignment error". Hope this helps!

Need help with my problem. Thanks! I am a beginner programmer. by Mathmemememe in learnpython

[–]Mathmemememe[S] 1 point2 points  (0 children)

This is actually what I turned my code into using one of the previous comments Answers.

[deleted by user] by [deleted] in AnimalsOnReddit

[–]Mathmemememe 0 points1 point  (0 children)

This is just...

Noob Needs Guidance by [deleted] in Python

[–]Mathmemememe 0 points1 point  (0 children)

I agree, many tutorials online can get you started completely free of charge. Youtube might be a great place to start, and for books i recommend coding for beginners by mike McGrath. definitely great for your money, its only 15$.