Book · @book
133 followers · 1247 posts · Server toot.lgbt

How do you multi-dimentional partial differential equations!?

Do I perform each term individually and marry them later on, or treat them as a single entity even if the answers are radically different?

My brain, she hurts.

#python #pde #dontcallmeneo #babylearnspython

Last updated 1 year ago

Book · @book
103 followers · 851 posts · Server toot.lgbt

I kicked the ass of the snake! I had to work out how to import libraries, understand what libraries are, where to find them, and why they are needed when I'm trying to learn it for myself...but I did it.

TransPi is complete. Not pretty but not bad.

#babylearnspython #python #programming #callmeneo

Last updated 1 year ago

Book · @book
101 followers · 814 posts · Server toot.lgbt

Okay, I got some basics down. Now I need my own project.

-Teach what a sq is and define the size as 4π²
-Put a circle in said sq. Size πr².
-Randomly place dots all over the place.
-Start small, 10, 100, work up to larger values when speed/efficiency is producing desired results.
-The ratio is what's required to find π. A(circle)/A(sq) = π/4.
Ergo: π ~ 4 x ( # dots in circle/#dots in square)
Using x²+y² < 1 will yield desired results.
Am I mathing correctly?

#python #babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 807 posts · Server toot.lgbt

( )
[ ]
{ }
< >
" "

You're blowing my mind, . Calm yo tits or explain...

#python #babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 807 posts · Server toot.lgbt

Replace, strip, split, negative counting...

This stuff is all very interesting but can I please get some irl examples so I can see it in use? Baby needs to remember the why to get the how.

#babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 807 posts · Server toot.lgbt

Converting variable types is...odd.

Converting 2.8 from a float to an int yields 2, and not the expected 3. Rounding is odd.

#babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 807 posts · Server toot.lgbt

Okay, back at it...

#babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 800 posts · Server toot.lgbt

Taking a break. This is fun by I'm getting too into it.

#babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 799 posts · Server toot.lgbt

So, variables inside a function are local, but you can define global properties inside the function by telling that's what you would like, please.

She's so polite!

#python #babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 799 posts · Server toot.lgbt

x = "based af"

def myfunc():
x = "rhotic"
print("Book is " + x)

myfunc()

print("Book is " + x)

#babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 799 posts · Server toot.lgbt

x = "Python "
y = "is "
z = "awesome"
print(x, y, z)

Just call me Neo

#babylearnspython

Last updated 1 year ago

Book · @book
100 followers · 796 posts · Server toot.lgbt
Book · @book
100 followers · 794 posts · Server toot.lgbt

Okay, I already hate floating points.

#babylearnspython

Last updated 1 year ago