Categories
coding python

my 1st program in Python

I wrote my first program (not including the false start last time I attempted programming) in Python… and it works! after a few bug fixes it’s actually quite small and some would think insignificant.

But I’m getting used to the syntax and form of the language.

print (“hello”)

print (“nwhat are your 2 favourite foods of all time?”)

food1 = input (“nt1.”)

food2 = input (“nt2.”)

print (“I have made “,food2+food1,” for you!”)

input (“press a key to exit and enjoy your meal :)”)

pflynt's avatar

By pflynt

My sense of humour is absurdist, inwardly bleak, caustic and morose, self-referential, rebellious and defiant, even in some cases sadistic, but overall sincere and even in the tragedies, hopeful.

Leave a comment

Design a site like this with WordPress.com
Get started