Variables are often described as boxes.
You can store values in it.
This idea can be helpful in the first few times you use a variable, but it isn't an accurate way to
describe how variables are represented internally in Python.
It's a much better to think of a variable as labels.
You can assign values on them.
You can also say that the variable references a certain value like this.
So this things distinction probably won't matter much in your initial programs, but it's worth learning
earlier rather than later.
At some point you will see unexpected behavior from a variable and an accurate understanding of how
variables work will help you identify what's happening in your code.
Because most programs define and gather some sort of data and then do something useful with it.
It helps to classify different types of data.
The first data type, we will look at the string.
Strings are quite simple at first glance, but you can use them in many different ways.
A string is a series of characters.
Anything inside quote is considered.
For example, this is a string.
So yeah, there's also you can write a string like this, for example, my special message.
And here we will add single quote instead of double quote.
Hello, my name is Stephan.
And the flexibility allows you to use quotes and apostrophes within your strings.
So let's write actual text here.
Mice.
My here.
My another.
Super string.
And here we will do a sample.
One of Python's strings.
Is it's it's diverse and supportive community.
That's it.
Now, let's explore here.
As you can see here, there's.
Strings at this lecture.
Now let's explore some of the ways you can use strings.
The first is changing case in a string with methods.
So I think we can now delete this here for now.
And let's get more practical.
All right?
That's it.
So here, one of the simplest tasks you can do with strings is change the case of the words in a string.
So let's look at this code here.
For example, my name is, for example, Oxley.
Or actually, let's make it.
Academy name is.
Academy name.
Here.
This is a name.
And here, Oxley Academy.
And here we will print name that title of academy name that here.
As you can see, we have several formats we use actually several.
It's it's a lot of formats and functions, but you will learn all of these functions.
Don't worry here.
Now we will use title.
That's it.
Now let's actually run this code.
And as you can see here.
In this example, the variable academy name, the variable academy name refers to the lower case Oxilia
Academy.
See here lower case lowercase.
The method title.
Appears after the variable in the print.
Right.
So a method is an action that python can perform.
One a piece of data.
The dot here.
After name in the academic title.
Cast fight on to make the title method act on a variable name.
So that's it.
Every method is followed by a set of parentheses, right?
So because methods often need additional information to do their work, that information is provided
inside the parentheses.
So the title function doesn't need any additional information, so its parentheses are empty.
So here let's as you can see, there's no additional information we can provide to title.
So title method changes.
Each word to title case where each word begins with capital letter oxa.
Oxley.
And here Capital letter A.
Academy.
That's it.
So this is useful because you will often want to think of a name as a piece of information.
For example, you might want your program to recognize the input value values.
Auxly.
Academy as the same name and display all of them as uppercase Oxley and then lowercase the title format.
Right?
So several other useful format methods are available for dealing with case as well.
For example, you can change a string to all uppercase or all lowercase letters like this here.
So here we will write instead of title, we will delete this and upper.
That's it.
Let's try this.
And as you can see, uppercase.
Let's actually delete this here.
That's the output of us here.
Oops.
Sorry.
Here.
As you can see, an uppercase Lochside academy.
Let's try the lowercase lower.
As you can see here, lowercase Oxford Academy.
So the lower method is particularly useful for storing data.
So you typically want to want to trust the capitalization that your users provide.
So will you.
So you will convert strings to lowercase, will convert your strings to lowercase before storing them.
Then you when you want to display the information, you will use the case that makes the most sense
for each string.