]]>
]]>
]]>
I explained some code from this source:
]]>https://github.com/Choza973/Mastery-4/blob/master/MST4.py
I will place this video here.
]]>
I tried with “readlines” or “readline” but readlines won’t work if it’s a list what it is trying to read, and readline would only read 1 line, and i would take a lot of time doing lines of codes for every line of text.
Nice pun with the “bananasplit” Ken, since we had to use it, and you told us to read bananas, get it? Heh.
Here’s a snip:
Comparison between reading a single line and the whole text.
God of Python HELP ME.
]]>First, ask for the value “n” and declare a function.
Use the parameter x and eps which is a really small number.
“R” is the same value as “x”, a copy.
While the absolute value of “x – r * r” is greater than eps, it will loop doing a multiplication of 0.5 and some weird adition of r and x / r.
And obviously return r.
]]>What i do here is, ask the user for 2 values, declare a function, and then use a loop which then changes the value of “x” to “y” and “y” to the remainder of the division from “x” and “y”, while “y” exists or has a value.
Then return “x”.
I honestly got this code from:
http://www.programiz.com/python-programming/examples/hcf
But i do try to understand the code and give it a use.
Besides i’m not that good at math…
]]>First i tried this:
Had to install PIP and then run the commands, didn’t work.
Tried with older versions so it compiles easily, NOPE.
Downloaded the zip file and decompressed, then ran from Cygwin, guess what? It didn’t work.
]]>