Mayungo's Python Learning Episode 1: I tried printing with print

Mayungo Mayu Mayu.

I am studying Python etc. at a certain facility.

I will frequently review the basics of Python in a post after a long time and output it.

Then from print!

Use print () to enter characters in Python. Let's put in the words of a certain anime.

print(Exactly DEATH ☆ GAME! !!)

File "<ipython-input-8-f6bf2af4c19f>", line 1
    print(Exactly DEATH ☆ GAME! !!)
                        ^
SyntaxError: invalid character in identifier

I got an error. The part to be fixed is specified by "^". I'm getting a syntax error here. Let's put "" (double quotation marks) in print (). This will give you a quote.

print("Exactly DEATH ☆ GAME! !!")

Exactly DEATH ☆ GAME! !!

Only the inside of "" "is displayed. The same is true for'' (single quotation).

print('Exactly DEATH ☆ GAME! !!')

Exactly DEATH ☆ GAME! !!

If you mix "" "" and "''" here, an error will occur, so be careful.

print('Exactly DEATH ☆ GAME! !!')

File "<ipython-input-11-2cb4aeeeb0d2>", line 1
    print("Exactly DEATH ☆ GAME! !!')
                            ^
SyntaxError: EOL while scanning string literal

I tried to put out the letters in the first time.

It is famous for hello world and may be interesting compared to other languages.

print("hello world")

hello world

Finally, print out the most important (?) Information.

print("Thank you for subscribing to the channel")

Thank you for subscribing to the channel

The same content as this time is also published on YouTube, so please take a look if you find the video easier to understand.

Thank you for reading.

Click here for a list of each story.

Recommended Posts

Mayungo's Python Learning Episode 1: I tried printing with print
Mayungo's Python Learning Episode 3: I tried to print numbers with print
Mayungo's Python Learning Episode 7: I tried printing with if, elif, else
Mayungo's Python Learning Episode 8: I tried input
I tried fp-growth with python
I tried scraping with Python
Mayungo's Python Learning Episode 6: I tried to convert a character string to a number
I tried gRPC with Python
I tried scraping with python
I tried machine learning with liblinear
I tried web scraping with python.
I tried running prolog with python 3.8.2.
I tried SMTP communication with Python
I tried learning LightGBM with Yellowbrick
[Episode 3] Beginners tried Numeron AI with python
I tried scraping Yahoo News with Python
I tried learning with Kaggle's Titanic (kaggle②)
I tried sending an email with python.
I tried non-photorealistic rendering with Python + opencv
I tried recursion with Python ② (Fibonacci sequence)
[Episode 1] Beginners tried Numeron AI with python
#I tried something like Vlookup with Python # 2
Mayungo's Python Learning Episode 4: I tried to see what happens when numbers are treated as letters
I tried "smoothing" the image with Python + OpenCV
I tried hundreds of millions of SQLite with python
I tried "differentiating" the image with Python + OpenCV
I tried L-Chika with Raspberry Pi 4 (Python edition)
I tried Jacobian and partial differential with python
I tried to get CloudWatch data with Python
I tried using mecab with python2.7, ruby2.3, php7
I tried function synthesis and curry with python
I tried to output LLVM IR with Python
I tried "binarizing" the image with Python + OpenCV
I tried running faiss with python, Go, Rust
I tried to automate sushi making with python
I tried playing mahjong with Python (single mahjong edition)
I started machine learning with Python Data preprocessing
I tried running Deep Floor Plan with Python 3.6.10.
I tried sending an email with SendGrid + Python
Mayungo's Python Learning Episode 9: Gold Ax and Silver Ax
[Mac] I tried reinforcement learning with OpenAI Baselines
Learning Python with ChemTHEATER 03
"Object-oriented" learning with python
Learning Python with ChemTHEATER 05-1
Learning Python with ChemTHEATER 02
I tried deep learning
Learning Python with ChemTHEATER 01
I tried Python> decorator
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 "morphology conversion" of images with Python + OpenCV
I tried hitting the API with echonest's python client