More Variables: Strings

Attention: Our videos have subtitles in all partner languages. You can switch on subtitles in the youtube player by clicking the gear wheel and selecting your preferred language.

This video introduces variable type string and explains how it is used.Strings are everywhere. Usernames, passwords and most of what you can see on a webpage are strings. In this video, we will show you how to define strings, also, making a particular operation with them, called concatenation.

Define a String Variable and Print its Value
1) Create a new Python script or program. 2) Define a string variable named my_string and your name as a value to it. 3) Print the string
Solution
 myName = "Marc" # Defines myName variable

print(myName) # print the variable