Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 1

No change in size, 17:39, 15 May 2017
Part 2 - Hello World
This time we should now see that the python function "print()" has outputted to the screen the words 'hello world'. In python a word or a bunch of characters like 'hello world' is called a 'string'. So what we did above is, passed a '''string''' as a '''argument''' to the print '''function'''. These words are important for understanding and talking about different aspects of code.
=== Part PART 2 - Hello World HELLO WORLD ===
Next, we will make our first script with the above function. Open a new text file called "lab1a.py".