Getting Started with python3 # 1 Learn Basic Knowledge

Hi, my name is beatbox4108. This time, I would like to write an introduction to python3. Since I am a beginner of qitta, please forgive the notation that is difficult to see.

Target person

Beginners in programming and trying to learn python Teachers who want to use python in the field of education but do not know how to explain

Premise

python3 is installed on your pc. Understand how to use the development environment.

I will write it first

Save the following content as test.py and try running it.

test.py


print("HelloWorld")

result:

HelloWorld

Yes. It seems like you'll hear a voice saying "I know" __, but it's still __ good source code __. The kind of `print``` that we just used is called the function . ```print```The contents of the parentheses behind```argument```It's called. The arguments are enclosed in ```" ```, which will be explained later. I will explain how to use the `print``` function that you will use from now on.

How to use the print function

print(Argument 1,Argument 2...)

Now that you know how to use the `` `print``` function, let's do four arithmetic operations.

Do four arithmetic operations

print(41+8)
print(41-8)
print(41*8)
print(41/8)

The following calculations are written in the order of `addition-> subtraction-> multiplication-> division`, but what are `*` and `/`? .. The answer to this question is __ because there are no multiplication and division symbols on the __keyboard. Division will result in an error if divided by 0.

ZeroDivisionError: division by zero

By the way, I will learn about advanced calculations next time.

This time it ends. Please look forward to the next time. Go to Table of Contents

Recommended Posts

Getting Started with python3 # 1 Learn Basic Knowledge
1.1 Getting Started with Python
Getting Started with Python
Getting Started with Python
Getting Started with Python Functions
Getting Started with Python Django (1)
Getting Started with Python Django (4)
Getting Started with Python Django (3)
Getting Started with Python Django (6)
Python3 | Getting Started with numpy
Getting Started with Python Django (5)
Getting Started with pandas: Basic Knowledge to Remember First
Getting Started with Python Web Applications
Getting Started with Python for PHPer-Classes
Getting Started with Python Basics of Python
Getting Started with Python Genetic Algorithms
Getting started with Python 3.8 on Windows
Getting Started with Python for PHPer-Functions
Getting Started with Python Web Scraping Practice
Learn Python! Comparison with Java (basic function)
Getting Started with Python for PHPer-Super Basics
Getting Started with Python Web Scraping Practice
Getting started with Dynamo from Python boto
Django 1.11 started with Python3.6
Getting started with Android!
Learn Python with ChemTHEATER
Getting Started with Golang 2
Getting started with apache2
Getting Started with Golang 1
Getting Started with Django 1
Getting Started with Optimization
Getting Started with Golang 3
Basic knowledge of Python
Getting Started with Numpy
Getting started with Spark
Getting Started with Pydantic
Getting Started with Golang 4
Getting Started with Jython
Getting Started with Django 2
Getting started with Python with 100 knocks on language processing
[Translation] Getting Started with Rust for Python Programmers
Getting started with AWS IoT easily in Python
Materials to read when getting started with Python
Settings for getting started with MongoDB in python
Get started with Python in 30 minutes! Development environment construction & learn basic grammar
Translate Getting Started With TensorFlow
Getting Started with Tkinter 2: Buttons
Getting Started with Go Assembly
Getting Started with PKI with Golang ―― 4
BASIC authentication with Python bottle
[Python] Using OpenCV with Python (Basic)
Getting Started with Google App Engine for Python & PHP
Get started with Python! ~ ② Grammar ~
[Python] [SQLite3] Operate SQLite with Python (Basic)
Getting Started with Django with PyCharm
Getting Started with python3 # 3 Try Advanced Computations Using Import Statements
Minimum knowledge to get started with the Python logging module
Getting Started with Mathematics Starting with Python Programming Challenges Personal Notes-Problem 1-1
Get started with Python! ~ ① Environment construction ~
Link to get started with python
Web scraping with Python ① (Scraping prior knowledge)