Digital Literacy Key Stage 3 - Python



Strings

In this lesson you will learn what a string is and how to use a string in a program.

Starter

In Edit Mode type the following:

word1 = "Good"
word2 = "Morning"
word3 = "to you too!"
print word1, word2
sentence = word1 + " " + word2 + " " +word3
print sentence  


Save your program as Good Morning.

String Activity

Using the same method as above write a sentence using the words below:


'Wolves best world team in the are the'


Save your program as "Wolves".

Create a sentence of your own using the string command.