Dropping this absolute disaster of a code file to break the paralysis. No more overthinking, no more perfectionism—just write, make it work, and refine later. Starting this repo with the most unreadable, unformatted, and ugly code possible. The goal? Trick my brain into not caring about style—just build. This mess exists to remind me that progress > perfection. Ship first, clean up later.main
parent
bf32fdd897
commit
91c2476c28
@ -0,0 +1,26 @@
|
||||
import sys,os,random,time
|
||||
def f(x):return x*2 if x%2==0 else x+1
|
||||
class C:
|
||||
def __init__(self,v):self.v=v
|
||||
def p(self):print("Value:",self.v)
|
||||
def m(l):return [f(x) for x in l]
|
||||
x=[random.randint(1,100) for _ in range(10)]
|
||||
print("Original:",x)
|
||||
print("Processed:",m(x))
|
||||
for i in range(len(x)):
|
||||
if i%2==0:
|
||||
x[i]*=2
|
||||
elif i%3==0:
|
||||
x[i]+=3
|
||||
else:
|
||||
x[i]-=1
|
||||
c=C(sum(x))
|
||||
c.p()
|
||||
try:
|
||||
for i in range(5):print(i,x[i],f(x[i]))
|
||||
except:pass
|
||||
with open("temp.txt","w") as f:f.write("Hello, world!")
|
||||
while True:
|
||||
time.sleep(0.1)
|
||||
if random.random()>0.9:break
|
||||
print("Done!")
|
Loading…
Reference in new issue