What is the most advanced code you can write in python?

There is always simple lines of code like input and print that you learn on in like day 1 of the 100 days course, and then there’s more advanced things like import sys and so on.

But what is the MOST advanced thing you can do with python?

1 Like

You can do Machine Learning with OpenAI and Tensorflow

Is Tensorflow just another OpenAI thing?

1 Like

There is no limit to what python can do apart from maybe being slow …

3 Likes

It’s AI for simpler stuff, for example you wouldn’t want to use OpenAI for stuff like recommending books to read, instead you would want to use Tensorflow since it’s a simpler task and it would cost less to use it, using OpenAI for stuff like that is like trying to carve a piece of wood with a sword instead of using pocket knife

2 Likes

Get the 100th fibb

f=[0,1]
while len(f)<100:
    f.append(f[-1]+f[-2])
print(f[-1])

Oh and I can do hello world!

So basically Tensorflow is like OpenAI just doesn’t cost as much

Check out this by @DefendyPug:

x = chr(int())
b = x
b += b + b + b + b + b + b + b + b + b
y = x

x += x + x
x += x + x + x
f = x

z = x + y
x += x + x + x + x + x + x + x + x 
l = x

print(chr(len(z + z + z + z + z + z + z + z)) + chr(len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(y)) + chr(len(l)) + chr(len(l)) + chr(len(x) - len(f) + len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)) + chr(len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)) + chr(len(x) + len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)+ len(y)) + chr(len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y)) + chr(len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(y) + len(y) + len(y) + len(y)) + chr(len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(b) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y) + len(y)) + chr(len(b) + len(b) + len(b) + len(b) + len(b) + len(b)+ len(b)+ len(b)+ len(b)+ len(b)))
4 Likes

Yes and it can’t do complicated stuff

I have no idea what you just typed

Fibonacci numbers. Have you heard of it?

What’s all this z + z + z stuff, and this also makes no sense whatsoever

Idk, I didn’t write that. Ask @DefendyPug and try testing the code.

The first two fibbinacci numbers are 0, and 1, ever other number is the last two numbers added together

@DefendyPug WHAT IS THE Z + Z + Z stuff???

Finding a certain fibbinacci number is often used as a way to teach recursion in computer programmer, although personally I think recursion is a really terrible way to find fibbinacci numbers.

I’m trying to do Deep-Q-Learning but holy cow that’s complicated.

To be more specific, I created a boat game, where the boat needs to collect stars (giving you points) in the Ocean but avoid being caught by traps (making you loose points).
After that I made an AI to play the game and try to maximize the amount of points without getting caught by traps.

It takes too much time to do 1 simulation and I need to make 1000 more hahahaha I’m getting crazier by the day.

No it is not. Tensorflow and PyTorc allow programmers to build all sort of ai modules and networks. Of course to get the performance ypu need the proper hardware and need to delve into CUDa and alike.
But to say tensor flow is a simplified openAI is like saying that a house is a simplified brick.

lol for me, its my one-line programs that constantly utilizes ternary operators, list comprehension, and other obscure syntax.

Idea:

Recreate the functionality of programming in binary, where within the program the user can recreate programming in binary.

Create a ‘virtual environment’ where an algorithm reads the bytes and stored information that the user is writing. Create a sort of interpreter where it can take the information it reads and process it into the lowest level actions. Then create an area where the user can see the actions executed after editing the binary.

results:
Thus recreating a very low level programming language using a high level language (python).

From there it becomes a looping sandbox, where the user with enough time and effort can recreate the high interpreted python programming language…inside of python. Then from there, recreate the very program they made to recreate the use of binary. And then it becomes an endless cycle.

With enough binary written in the ‘interpreter’ someone could possibly simulate two particles colliding. And if they could simulate two particles colliding, they could simulate elements, and commonly existing chemical formulas. ionic bonds, and changes of state of matter. Then comes in organic chemsitry, and since all living things are made out of non-living atoms, this project could recreate a conscious, and simulate living things.

Man, so I love the ideas that I can think of, I can just go to bed, not sleep and just sit there and think. Some think I should take a path in philosophy, but I’m fine with where I’m at now.

1 Like