Mayungo's Python Learning Episode 3: I tried to print numbers with print

Mayungo Mayu Mayu

This time it ’s the third episode

I will print out the numbers with print.

The same content is also published in the video, so please have a look if you like.

If you set "" "" and "''" in print, the contents will be output.

print("1")

1

But when it comes to numbers, sometimes it's better not to be a mast.

print(1)

1

Now create the variables first and second.

Nothing is attached to 114 and 514 here.

first = 114
second = 514

print(first + second)

628

The total of the two is 628.

Next, create variables iti and ni and enter 114 and 514 respectively.

Here, add "".

iti = "114"
ni = "514"

print(iti + ni)

114514

If you add and print, you will get 114514.

The difference is whether you see the numbers as numbers or letters.

I will touch on it a little more next time. Thank you for subscribing to the channel.

Click here for a list of each story.

Recommended Posts

Mayungo's Python Learning Episode 3: I tried to print numbers with print
Mayungo's Python Learning Episode 1: I tried printing with print
Mayungo's Python Learning Episode 5: I tried to do four arithmetic operations with numbers
Mayungo's Python Learning Episode 2: I tried to put out characters with variables
Mayungo's Python Learning Episode 8: I tried input
Mayungo's Python Learning Episode 7: I tried printing with if, elif, else
Mayungo's Python Learning Episode 6: I tried to convert a character string to a number
Mayungo's Python Learning Episode 4: I tried to see what happens when numbers are treated as letters
I tried to create a list of prime numbers with python
I tried to get CloudWatch data with Python
I tried to output LLVM IR with Python
I tried to automate sushi making with python
I tried to create a program to convert hexadecimal numbers to decimal numbers with python
I tried fp-growth with python
I tried scraping with Python
I tried gRPC with Python
I tried scraping with python
I tried to move machine learning (ObjectDetection) with TouchDesigner
I tried to implement Minesweeper on terminal with python
I tried to get started with blender python script_Part 01
I tried to touch the CSV file with Python
I tried to draw a route map with Python
I tried to solve the soma cube with python
I tried to get started with blender python script_Part 02
I tried to implement an artificial perceptron with python
I tried to automatically generate a password with Python3
I tried to solve the problem with Python Vol.1
I tried to analyze J League data with Python
I tried to solve AOJ's number theory with Python
I tried to find the entropy of the image with python
I tried to simulate how the infection spreads with Python
I tried to make a real-time sound source separation mock with Python machine learning
I tried to make various "dummy data" with Python faker
I tried various methods to send Japanese mail with Python
I tried to touch Python (installation)
I tried machine learning with liblinear
I tried web scraping with python.
[Python] I tried to visualize tweets about Corona with WordCloud
I tried to implement ListNet of rank learning with Chainer
I tried to make GUI tic-tac-toe with Python and Tkinter
I tried to divide the file into folders with Python
I want to debug with Python
I tried running prolog with python 3.8.2.
I tried SMTP communication with Python
I tried learning LightGBM with Yellowbrick
I tried to divide with a deep learning language model
I tried to build an environment for machine learning with Python (Mac OS X)
[5th] I tried to make a certain authenticator-like tool with python
I tried to solve the ant book beginner's edition with python
[2nd] I tried to make a certain authenticator-like tool with python
I tried to make deep learning scalable with Spark × Keras × Docker
[Python] A memo that I tried to get started with asyncio
[Pandas] I tried to analyze sales data with Python [For beginners]
I tried to fix "I tried stochastic simulation of bingo game with Python"
I tried to make a periodical process with Selenium and Python
I tried to find out if ReDoS is possible with Python
I tried to make a 2channel post notification application with Python
I read "Reinforcement Learning with Python: From Introduction to Practice" Chapter 1
I tried to summarize everyone's remarks on slack with wordcloud (Python)
I tried to make a todo application using bottle with python
[4th] I tried to make a certain authenticator-like tool with python