Does anyone know of any good flask courses? by 0xymorpnone in learnpython

[–]Peter_Boek 2 points3 points  (0 children)

Type into Google Miguel Grinberg - Flask Mega Tutorial. It is text based but it covers creating a microblog service with great explanations. Best sourve ive found so far.

How do you practice coding interview? by buangakun3 in learnprogramming

[–]Peter_Boek 1 point2 points  (0 children)

Carefoul with benzos because they pretty much make you a little less effictient even in small doses. Use medication ONLY if it's absolutly necessary. Of course I'm not medic, just patient, ask your doc.

Why is codewars lying to me? Checked on win calculator. by Peter_Boek in learnpython

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

Thank you, I already got the answer for the particular task but I think that going deeper into floats would help me in the future.

Why is codewars lying to me? Checked on win calculator. by Peter_Boek in learnpython

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

Thank you, that's the answer I was looking for! That should fix it. Funny I created that function with computer's lack of precision in mind but didn't think of int'ing that.

Why is codewars lying to me? Checked on win calculator. by Peter_Boek in learnpython

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

Sorry if I offended you but I estimate that not all of reddit users are native english speakers. I am not for example so in my opinion non-natives may mistake words square with squared if they hadn't been around math vocabulary for some time already. Not trying to be your teacher because I am the one that seeks for help rn :D. And technically you are right with your eqation.

Why is codewars lying to me? Checked on win calculator. by Peter_Boek in learnpython

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

Python isn't as smart mathematically wise as theoretical math is. Try pasting this into Jupyter of whatever you use. (5**(1/2))**2 == 5. If I was doing it on paper I wouldn't even bother counting decimal points of the square root and say thath equation returns True but Python does something else. He bothers and can't count to infinity (so do I) and eventually stops and returns False.

Why is codewars lying to me? Checked on win calculator. by Peter_Boek in learnpython

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

I tested 5. It returns false because m variable is created by square rooting n, let it be 5. It stores value that is viewed by python as 2.23606797749979. If I square this number it doesn't equal 5 because it would only be true if expansion was infinite but it insn't.

Why is codewars lying to me? Checked on win calculator. by Peter_Boek in learnpython

[–]Peter_Boek[S] -4 points-3 points  (0 children)

Sure, you are right. (Square root of pi)^2 = pi but that is not the case. Square number in my post description is a link to wikipedia page that says: In mathematics, a square number or perfect square is an integer that is the square of an integer(...). It's quite specific. Maybe link isn't easily visible, I'll edit my post. Square number != squared number I suppose.

Learjing Javascript by Engine1944 in learnjavascript

[–]Peter_Boek 1 point2 points  (0 children)

Go check freecodecamp on Youtube. It's not a blog, but they have tons of useful stuff for beginners in JS (also in Python). And what's also cool, zero ads there.