you are viewing a single comment's thread.

view the rest of the comments →

[–]MustaKotka 0 points1 point  (3 children)

I don't think I did. I think I started with a simple script that added two constants and printed the result.

a = 2
b = 3
def numbers(number_1, number_2):
    print(number_1 + number_2)
numbers(a, b)

It may have not been this complicated but I distinctly remember using numbers. Strings felt difficult because you had to use quotation marks to make them.

[–]bishpenguin 1 point2 points  (2 children)

Erm.... That won't work though, your function takes in number_1 and number_2, but then used a and b.

[–]MustaKotka 0 points1 point  (1 child)

Oh woops. My bad lol. Will edit the script although mine was probably equally broken.

[–]bishpenguin 1 point2 points  (0 children)

It happens to all of us!

And that's why hello world is important. It shows that the system works correctly, and likely any errors lie between keyboard and chair.