90 Days Code: On the 1s and 2s

On this episode of the Python Chronicles.

I built my first program. Mind you, I’m being very generous with the word program, but it’s one nonetheless.

First Program

Input:

print(‘Hello’)

print(‘What is your name?’)

myName = input()

print(‘It is nice to meet you’ + myName)

print()

print(‘The length of your name is:’)

print(len(myName))

print(‘How old are you?’)

myAge = input()

print(‘You will be ‘ + str(int(myAge) +5) + ‘ in 5 years…Hooray!’)

When I ran this program, I got the following output

Output:

Hello

What is your name?

>>>Cam

It is nice to meet you Cam

The length of your name is:

3

How old are you?

>>>23

You will be 28 in 5 years…Hooray!

>>>

This is rather simple, but it felt good to create something and actually see it work. It’s more of a morale booster because a lot of coding consists of things you don’t even see happening.

While on my Python journey, I actually came across another language that looks interesting, especially since I’ve become a fan of Augmented Reality in recent weeks.

Swift 👀

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store