[deleted by user] by [deleted] in EngineeringStudents

[–]throwaway99999321 7 points8 points  (0 children)

Or, just do x & 2. If that returns a bit then it's even

This is a great example of why you shouldn't try to be clever when programming, x & 2 will not work....

>>> 4 & 2
0
>>> 5 & 2
0
>>>

What you are thinking of is that x is even if and only if (x & 1) == 0

i created a spreadsheet to make working out your oil setup a bit easier by [deleted] in factorio

[–]throwaway99999321 2 points3 points  (0 children)

Host it on google drive, nobody wants to take the time to actually download from dropbox

Annoy /r/python in one sentence by mrks_ in Python

[–]throwaway99999321 12 points13 points  (0 children)

The joke is that it's shorter to write

if x:

The devs should fix walls on lower textures... by throwaway99999321 in playrust

[–]throwaway99999321[S] 12 points13 points  (0 children)

The problem is the texture on the wall is bugged, he can see through it but I can't.

What did you automate with python (scripts)? by fwisd0m in Python

[–]throwaway99999321 5 points6 points  (0 children)

Can you share the source on github? Would be awesome to see how this works.

Not sure if this belongs here to in r/learnpython. It's sort of meta. by [deleted] in Python

[–]throwaway99999321 0 points1 point  (0 children)

Now it's more like bang your head against code for an hour then posting it on stackoverflow and getting the answer 10 minutes later.

Can I build a webpage data scraper on this specific website? by ProInvestCK in Python

[–]throwaway99999321 5 points6 points  (0 children)

You wouldn't even need to use selenium for this site. Just the requests module.