13,420
edits
Changes
→PART 3 - Working with Variables
:# 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====
Before moving on to the next step make sure you identify any and all errors in "lab1a.py". When the check script tells you everything is "ok", you may proceed to the next step.
=== PART 3 2 - Working with Variables ===
A variable is used to store data for use later in the program. This data can be a string, integer, decimal, etc.
==== Part 3 - strings String Variables ====
First make a new variable containing a value.