Changes

Jump to: navigation, search

OPS435 Python Lab 1

8 bytes added, 08:31, 16 May 2017
Printing Text
:#At the prompt, issue the following python function:<source>
print()
</source><br>You will notice that nothing happened when we ran this "print()" function. This is because we didn't pass any arguments to it, lets try again.<br><br>
:# Issue the following function:<br><source>
print('hello world')
</source><br>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.
====Creating the introductory "Hello World" Script====
13,420
edits

Navigation menu