1,234
edits
Changes
→String Variables
:'''Perform the following steps:'''
:#First, launch the ipython3 shellCreate a python script (called lab1b.py) and first - start with a few simple things to try:<source>ipython3</source>:#Let's make a new variable containing a value by issuing the following command:<source lang="python">
name = 'Thomas'
</source>
:#Print the value to the screen:<source lang="python">
print('I have a friend named ' + name)
</source>
:#To gain practice, create a complete your python script (called lab1b.py) with the following content and details:
::::* The script should have a '''Shebang line''' like you did for your lab1a.py python script
::::* The script should use a single variable called "name"