[spam][draft] Hello World
Hello World is a very basic introductory computer program that demonstrates how to call a function. A function is like a tool. In fact, it should be called a "tool" rather than a "function" because then people would save memory space for things that introduce new meaning. Here is a hello world application in python: print("Hello, world.") It's a single line of text. The tool (or function) being used is "print". Print is a tool for outputing text. When used, it outputs text. Like most tools, it needs something to be used on. We give it the text: "Hello, world." .In python, text that's going to be used with tools like "print" needs to be surrounded by double quotes.
To state clearly, this python program: print("Hello, world.") outputs the text "Hello, world." on the screen, when run. Running it is hard, and is probably done most easily in a jupyter notebook. Y'know, figuring out how to run code is probably the hardest part of getting started with software, in my opinion. Especially in this age of mobile phones and graphical interfaces. It probably makes sense to try microsoft visual studio right now :( microsoft was kinda mean to linux, so it's a little saddening to recommend it. Anyway, let's assume you can figure out how to run python code, which personally I recommend doing from a linux terminal by typing 'python3' and hitting enter.
So, functions are tools, great, let's make one: def greet(who): print("Hello, " + str(who) + "!")
participants (1)
-
Undiscussed Horrific Abuse, One Victim of Many