r/Python • u/swizzex • Jul 16 '20
I Made This Learning python so my wife customized my tumbler.
7
u/DillonSyp Jul 16 '20
Did you tell her about the commands? Or does she already know python?
8
u/swizzex Jul 16 '20
I told her about it and she googled most of it.
5
2
0
Jul 17 '20
[deleted]
5
u/swizzex Jul 17 '20
No I can’t get her into it. Keep trying to as her job as a Porsche mechanic took a toll on her body. So I’d love her to have a desk job.
0
Jul 17 '20
[deleted]
4
u/swizzex Jul 17 '20
Ah lol sorry way over my head this late at night. I work at 3am so by 9 my brain is fried.
3
9
u/ravepeacefully Jul 16 '20
Ugh. Does she realize that indentation is important.. energy and down gonna cause some errors
That looks sweet tho ngl
4
u/swizzex Jul 16 '20
She does not I had it all indented correctly. But it just couldn’t go on with all the other stuff smoothly. It was also her first tumbler she had done.
1
1
Jul 16 '20
Class
1
u/ravepeacefully Jul 16 '20
?
1
Jul 16 '20
the first of the errors...
1
u/ravepeacefully Jul 16 '20
Oh wow lol didn’t even notice that. Kinda looks like it could be lowercase at a glance but yeah def isn’t.
1
u/HandsOfSugar Jul 16 '20
‘Why is the coffee falling out the bottom of this c...ah I’ve indented that return value incorrectly’
148
2
2
64
u/keepitsalty Jul 16 '20
Came to the comments for the code corrections. Wasn’t disappointed.
25
u/sexybokononist Jul 16 '20
12
2
u/Plane_brane Jul 17 '20
1
u/sneakpeekbot Jul 17 '20
Here's a sneak peek of /r/subsithoughtifellfor using the top posts of all time!
#1: Ah yes, i staple bread to trees aswell | 69 comments
#2: This made me laugh | 68 comments
#3: I kinda hoped it‘s real but I didn‘t expected it to be | 64 commentsI'm a bot, beep boop | Downvote to remove | Contact ^^me | ^^Info | ^^Opt-out
0
23
u/Kidplayer_666 Jul 16 '20
print(“that’s really cool pal!”) print(“also learning python”)
15
u/Exodus111 Jul 16 '20
No no.
TEXT = ["That's really cool pal!", "Also learning Python."] print(f"{TEXT[0]}\n{TEXT(1)}")Clean your code.
6
11
u/FlavoredFrostedTits Jul 16 '20
print('\n'.join([t for t in TEXT]))
10
4
u/Lornedon Jul 17 '20
print('\n'.join(TEXT))1
u/skwizpod Jul 17 '20
This is what I do. Even after seeing other good approaches here, this will always be mine.
1
1
2
4
1
1
Jul 17 '20
How did she account for the change in radius and keep all of the text aligned?
1
u/swizzex Jul 17 '20
She didn’t sadly next time she will cut out each line a couple pieces at a time to offset this. But she said weeding(removing vinyl) for this took 5 hours due to all the small lines. So she said it’s good enough for now unless I want to weed a new set. I said I loved it as is it’s wabi sabi.
1
u/entredeuxeaux Jul 17 '20
Could have at least shown the code. Cool, though.
3
u/swizzex Jul 17 '20
'''Run Daily''' import caffeination
class Tumbler: def init(self, amount, awaken): self.amount = amount self.awaken = awaken
def refill(self): self.amount = 30energy = Tumbler(30, False) while awaken != True: caffeination += 1 energy.refill()
print("Good Morning I'm Awake Now!")
Didn’t want to have 4 images.
3
u/Valrok_P99 Jul 17 '20
At first glance after noticing the python logo, I thought it said 'classes are dumb'. Lol
3
3
3
2
2
2
2
Jul 17 '20
Enjoy the learning process, and i think it's great that your wife supports you with this.
2
2
-1
1
-2
0
Jul 16 '20
[deleted]
34
u/swizzex Jul 16 '20
Didn’t even notice it until you called it out and now I can’t unsee it. And I know she was just typing it on the iPad and it always automatically capitalized the first word.
17
u/meatatfeast Jul 17 '20
Should have been using emacs
0
Jul 17 '20
[deleted]
9
u/hellfiniter Jul 17 '20
uff... someone feels like starting a war on friday ...most of us are already busy with those friday production deploys lol
2
35
64
7
35
u/SmellsLikeBu11shit Jul 16 '20
Your wife sound awesome OP