It doesn’t even have to work, my dad is a programmer and he uses python mostly. His birthday is coming up and I want to make him a shirt. I found this picture online and I thought it was funny but I don’t think it’s in python. I’m hoping someone can help me out. It should be super simple.
I’m sorry if this isn’t the place for this type of thing, but I couldn’t find anywhere else! I’d do it myself if I could, and I can’t ask my dad to help that would ruin the surprise lol.
![[Image: mockup.jpg?composition=%7B%22artwork%22%...&width=480]](https://vangogh.teespring.com/mockup.jpg?composition=%7B%22artwork%22%3A%7B%22url%22%3A%22https%3A%2F%2Fteespring-pri.s3.amazonaws.com%2F416_7291483_8457098_front_absolute.png%22%2C%22offset%22%3A%7B%22x%22%3A0.0%2C%22y%22%3A3.1%7D%2C%22size%22%3A%7B%22width%22%3A11.78%2C%22height%22%3A8.73%7D%7D%2C%22artwork_limit%22%3A%7B%7D%2C%22artwork_transform%22%3A%22ScreenPrinting%22%2C%22artwork_orientation%22%3A%22Portrait%22%2C%22product_colors%22%3A%5B%7B%22hex%22%3A%22%23ffffff%22%7D%5D%2C%22product_image%22%3A%7B%22reference_point%22%3A%7B%22x%22%3A604%2C%22y%22%3A62%7D%2C%22printable_area%22%3A%7B%22x%22%3A390%2C%22y%22%3A68%2C%22width%22%3A440%2C%22height%22%3A660%7D%2C%22ppi%22%3A36.8276%2C%22url%22%3A%22https%3A%2F%2Fteespring-product-images.s3.amazonaws.com%2F116_front_ghost.png%22%2C%22background_mask_url%22%3A%22https%3A%2F%2Fteespring-product-images.s3.amazonaws.com%2F116_front_mask.png%22%7D%7D&height=570&signature=d1NL2ENhR18weEBDgG0UVhYNzMbhuN4NjHIEyXaYCNY%3D&version=2016-09-30-18-42&width=480)
looks like C, can you drink it?
Maybe
CoffeeScript on a Coffee cup
Similar will look like this in Python:
coffee = Coffee()
if coffee.empty():
coffee.refill()
else:
coffee.drink()
If want more text something like this.
import time
coffee = Coffee()
if coffee.status() == coffee.empty():
time.sleep(10)
return coffee.refilled()
else:
coffee.drink()
(Mar-12-2018, 06:42 PM)snippsat Wrote: [ -> ]Maybe CoffeeScript on a Coffee cup
Similar will look like this in Python: coffee = Coffee() if coffee.empty(): coffee.refill() else: coffee.drink()
If want more text something like this. import time coffee = Coffee() if coffee.status() == coffee.empty(): time.sleep(10) return coffee.refilled() else: coffee.drink()
Thank you so much!! I’m sure he’s going to love it! :)
(Mar-12-2018, 06:42 PM)snippsat Wrote: [ -> ]Maybe CoffeeScript on a Coffee cup
Similar will look like this in Python: coffee = Coffee() if coffee.empty(): coffee.refill() else: coffee.drink()
If want more text something like this. import time coffee = Coffee() if coffee.status() == coffee.empty(): time.sleep(10) return coffee.refilled() else: coffee.drink()
What does time.sleep(10) mean?
(Mar-12-2018, 10:26 PM)isashay Wrote: [ -> ]What does time.sleep(10) mean?
Time it can take to fill a coffee cup
So if coffee.empty() it will take 10 second(sleep) then it will return coffee.refilled().
The "//" means that the rest of the row is a comment (something for us a humans too read, not for the computer). To make a comment in python you use "#".
#This is a comment
Yes the same in Python.
# i am a software developer
(Mar-12-2018, 10:53 PM)snippsat Wrote: [ -> ] (Mar-12-2018, 10:26 PM)isashay Wrote: [ -> ]What does time.sleep(10) mean?
Time it can take to fill a coffee cup
So if coffee.empty() it will take 10 second(sleep) then it will return coffee.refilled().
Oooh. I like that even better, thank you!!
(Mar-13-2018, 12:11 AM)PyBeginner Wrote: [ -> ]The "//" means that the rest of the row is a comment (something for us a humans too read, not for the computer). To make a comment in python you use "#". #This is a comment
Thanks, i was wondering what that was lol