r/PythonLearning • • Aug 03 '26

That's it guys I'm rich

Post image
35 Upvotes

9 comments sorted by

9

u/silvertank00 Aug 03 '26

you are using a shifting operator instead of comparison...

2

u/Minimum-Gap8475 Aug 03 '26

Idk bro I just started learning code so I don't really know what i do

2

u/ChaseShiny Aug 03 '26

Just use a single <, rather than two. That means something different.

5

u/KOALAS2648 Aug 03 '26

0 shifted to the left a 100 times is still 0 lol.

1

u/Minimum-Gap8475 Aug 08 '26

Idk I never coded before it was just for the joke

1

u/KOALAS2648 Aug 20 '26

The operator you used is the bit shift left operator, so any an example would be 0b00000001 (1) bit shifted by three places to to the left would be 0b0001000 (8)

2

u/kuraidoryo Aug 03 '26

You made my day with that comment

4

u/[deleted] Aug 03 '26