Lizzy Foster
@LizFoster
I am a HUGE HUGE fan of all things math-related! I am trying to learn as much as I can about Python. Have a good day~!
Hello all! I have been working on fixing up my old Mandelbrot Set code over the past few days. I will not list everything I changed (and that is defin
Python (with Turtle)
Hello all! *^~^/
I am back with another coding project. This took a couple hours to make, and I think I definitely learned from this! There are obvio
Python (with Turtle)
RayhanADev NICE! Interesting use of Turtle good job!, I think I’m going to get Mastermind sometime later this year because I ran flat out of board games to play xD.2 years ago
Hello all! I started working on this earlier today, and I have made pretty good progress on it. I was hoping I could just post it once it was finished
Python
SixBeeps You're trying to multiply the matrix by a scalar, right?
You could do what @MocaCDeveloper suggested and use a nested loop, or you could also try using list comprehension2 years ago
MocaCDeveloper You have a list inside of the list matrix1.
You're going to need to have 2 for loops to go through each list inside matrix1.
That is where you're error is occuring.
See on line 4 you create a variable 'matrix1' that is a list, then inside setupMatrix you, for some reason, append a empty list through each iteration and that list gets no values.
So, on line 30, you would want to do:
Then, on line 45, you will then need another 2 for loops to go through each list.
I hope this helps2 years ago
LizFoster I can work on fixing the minor problems and removing unnecessary junk later; I just want to get it in a working state that I understand wwwww2 years ago
Yes, I have been gone for a while, and I apologize for that. My huge PocketMonsters project has been put on hold for the sake of my sanity, and I want
Python
Hooray, it is finally here! I struggled a bit with finding ones that I haven't done for this one, and I hope I've got original ones here for you all.
Python
PYer Hey @LizFoster! I've checked out every post of yours and have liked them though I don't understand anything! The only problem is, I'm never signed in, so I'm going to go through and upvote your posts.3 years ago
Here is my submission!
This takes a url to an image, and makes the turtle draw it! To use it, use this program. Copy the matrix made in NewImList, an
Python (with Turtle)
Conflagrate The linked program does not seem to work. It keeps returning:
(253, 253, 253)
Traceback (most recent call last):
File "main.py", line 28, in
newIm[r].append(rgbToHex(rgb)) # change to rgb if you want to use RGB color
File "main.py", line 21, in rgbToHex
return "#"+decToHex(rgb)+decToHex(rgb)+decToHex(rgb)
File "main.py", line 18, in decToHex
return hexvals[floor(dec/16)]+hexvals[dec%16]
TypeError: unsupported operand type(s) for /: 'tuple' and 'int'
`3 years ago
Yay! With the help of my friend @AmazingMech2418, I have learned the basics of C++! Obviously the first thing I made was a π approximation program!
I
C++
Highwayman Looking more closely at your program:
C++ has for loops.
The general syntax is
for(int somename = start ; somename < limit ; some_name += step )
much like python’s range function.
for i in range(start,limit,step):
You’ve probably already learned this by now haven’t you XD oh well here it is if you haven’t.3 years ago
Hello all ! I am so sorry for being gone all weekend, I was super busy . . T~T
However, I do not think you will be disappointed, for I was working on
Python (with Turtle)
Navinor Liz: Don't spam the keybinds
My brain: DONT DO IT DONT DO IT
My fingers:
Edit: Don't do it this happens
image3 years ago
TheDrone7 It's been a long time since I actively went through the posts on repl talk but I see you've been posting really good content lately. Keep up the good work!3 years ago
Okay, time for something fun that , for once, ISN'T related to π! (Lol)
This program takes a user-inputted base and offset, and graphs the correspond
Python (with Turtle)
Let's talk about the Riemann Sum!!
Okay, so the Riemann Sum does the same thing that an integral does, as it is essentially measuring the area under
Python
Yayyyy, it is time again, for a compilation of a few 𝛑 approximations!!! ( ̄ω ̄)/
A few notes and things to consider:
Number 2 could have been more ac
Python
Highwayman I just spent an hour yesterday trying to optimize #2, and instead I made it 40 times slower ;-;
I might have thought if something though...3 years ago
I am so tired... T~T
I finally finished it, after slacking off for a few days (やった!)
This was honestly a bit frustrating to make.. (Lol)
This calcu
Python (with Turtle)
Nothing too special this time ^ ^*
A short little program that converts Hexadecimal strings into Decimal numbers. Try setting "C9" as the input, and
Python
This is something I have wanted to do ever since I started learning about Python Turtle, as it is just so darn pretty!
Recamán's Sequence is a set of
Python (with Turtle)
Kelvin0 I've never heard of this sequence before but it looks really neat! Very interesting pattern once it's drawn using python. Well done!3 years ago
I'm back at it again, this time with a compilation of different formulae for approximating π, with surprising accuracy in some cases!
Fascinating stu
Python
xxpertHacker JS https://repl.it/@StudentFires/pJS,
C++ https://repl.it/@StudentFires/pC
That is the result of a tutorial on memoization, hours of work on converting loops to recursion, converting mathematical summation and product notation to code, then to recursion, and plenty of Desmos graphing and more.
I'll be back on Repl in about 5 hours.3 years ago
xxpertHacker Do you know if this an effective way to calculate π?
I believe I'd need p(n)/n to calculate for π after the function.
p(z) = ProductNotation(n=1, (2n/(2n-1))^2, z);
π = p(∞)/∞
PI
Update:
Screenshot 2020-04-02 at 3.16.39 PM - Edited3 years ago
Today I'd like to teach you all about one of my all time favorite constants: π!
Most likely, all of you know that π is the ratio of a circle's circumf
Python
JosiahKnisely Wait, there are different numbers for π? This is when the confusion sets in...3 years ago
(NOTE: It only does 18 iterations, as if you try to do any more, it raises an OverflowError, how lame.. -__-)
わーい, another π approximation method! (I
Python
oneiric this is really cool! I love your posts, now i have to find out more about the Chudnovsky algorithm.3 years ago
The golden ratio (φ) is the number you get by doing this equation (when given a and b):
a / b = a+b / a
φ is approximately 1.61803398874989484820 (I
Python
And another one!! That was quick (Lol)
Using the Product operator (𝚷), you can skip all of the confusing ∫ math in the Wallis Product for π.
This i
Python
Alright, another way to compute π, done!
This uses an infinite series (via the summation operator) discovered by our good friend Leonhard Euler, whic
Python