Learn the basics while touching python Variables

Do you play Python?

I started question = Do you have one? There is! That's right!

I'm studying at a site called progate

It ’s very easy to understand here!

What I learned variable

It ’s a recognition that it ’s kind of like a nickname. ** Are you there? There is! That's right! ** **

aaa = 15 If you specify first With bbb = aaa * aaa It seems that it can be used repeatedly

But I have the impression that it's going around.

Why specify a variable?

Because I want to clarify what that number represents. ** Are you there? There is! That's right! ** **

The variable I mentioned earlier is like a nickname It has changed a little from the image The nickname makes the clear thing difficult to understand in a sense (Feeling that only those who know it can understand)

So ʻaaa = 15` this is not good

I don't know what both ʻaaaand15` represent.

Isn't it easy to understand if you write this?

my_age = 15 Now you know what it means to be 15 years old. I've lost my age

The idea that this is convenient

So how old will I be five years later? If you want to answer the question

I'm 15 ... yes ... I'm 15 ... I'm definitely 15 ...


my_age = 15
five_years = 5

my_future = my_age + five_years
# 15 +The meaning is easier to understand than the number 5
print(my_future)
#Easy to understand what you want to know

20

I'm 20 years old `Yuppie! Mammoth happy pee! ``

By the way You can display the result with print (Honyalala)

So ... I wonder if ... how is it? Everyone

With this kind of thing print(question)

Recommended Posts

Learn the basics while touching python Variables
Learn the basics of Python ① Beginners
What beginners learned from the basics of variables in python
Review of the basics of Python (FizzBuzz)
Easy Python to learn while writing
About the basics list of Python basics
Python basics
Python basics ④
[Python] Variables
Python basics ③
Python basics
Python basics
Python basics
Python basics ③
Python basics ②
Python basics ②
Learn the design pattern "Prototype" in Python
Learn the design pattern "Builder" in Python
Learn the basics of Theano once again
[Python3] Understand the basics of Beautiful Soup
Learn the design pattern "Observer" in Python
Learn the design pattern "Proxy" in Python
Learn the design pattern "Command" in Python
Learn the design pattern "Visitor" in Python
Learn the design pattern "Bridge" in Python
Learn the design pattern "Mediator" in Python
I didn't know the basics of Python
Learn the design pattern "Decorator" in Python
[python] Checking the memory consumption of variables
The story of manipulating python global variables
Learn the design pattern "Iterator" in Python
The basics of running NoxPlayer in Python
Learn the design pattern "Strategy" in Python
Learn the design pattern "Composite" in Python
[Linux] Learn the basics of shell commands
Learn the design pattern "Singleton" with Python
Learn the design pattern "State" in Python
Intuitively learn the reshape of Python np
Learn the design pattern "Adapter" in Python
Learn the design pattern "Facade" with Python
Mathematical statistics from the basics Random variables
[Python3] Understand the basics of file operations
Python basics: list
Python basics memorandum
Python basics (variables, types, operators, if statements, for statements)
Learn the design pattern "Abstract Factory" in Python
Learn the design pattern "Template Method" in Python
#Python basics (#matplotlib)
Python CGI basics
Python basics: dictionary
Learn the design pattern "Factory Method" in Python
Basics of Python ①
Basics of python ①
Python slice basics
#Python basics (scope)
[Python] Chapter 02-01 Basics of Python programs (operations and variables)
#Python basics (#Numpy 1/2)
#Python basics (#Numpy 2/2)
#Python basics (functions)
Python array basics
Python profiling basics