Python Basic Course (1 What is Python)

What is Python

Python is a programming language that appeared in 1991. It has the following features.

Due to these characteristics, it is widely used mainly in Europe and the United States. It is also used with Java as a language that can be used in Google App Engine. Youtube and Dropbox are also written in Python. Surprisingly, the popular simulation game "Civilization 4" is also written in Python.

You may have heard that "Python is easy to learn" among those who are reading this page now. There are several reasons why Python is said to be good for learning.

"Forced indentation" is often talked about as a major feature of Python.

◆ Example: Factorial program written in C language

factorial.c


int factorial(int x)
{
    if (x == 0) {
        return 1;
    } else {
        return x * factorial(x - 1);
    }
}

◆ C language program that returns the same result, but difficult to understand

factorial.c


int factorial(int x) {
 if(x == 0) {return 1;} else
 {return x * factorial(x - 1); } }

◆ Factorial program written in Python

factorial.py


def factorial(x):
    if x == 0:
        return 1
    else:
        return x * factorial(x - 1)

◆ Writing like this will result in an error

factorial_ERROR.py


def factorial(x):
    if x == 0: return 1 else:
return x * factorial(x - 1)

Also, in the salary ranking by programming language as seen from the job offer There is also Survey results that won the 1st place.

The Python name comes from a comedy show produced by the British television station BBC. It is "Flying Monty Python".

The reptile python, which means the English word Python, is the Python mascot. It may be used as an icon. python.sh-150x150.png

Next: Python Basic Course (2 Python Installation)

Recommended Posts

Python Basic Course (1 What is Python)
What is python
What is Python
Python basic course (12 functions)
Python basic course (2 Python installation)
[Python] What is Pipeline ...
Python basic course (9 iterations)
Python Basic Course (11 exceptions)
Python basic course (6 sets)
Python Basic Course (Introduction)
Python basic course (13 classes)
Python basic course (8 branches)
[Python] What is virtualenv
Python Basic Course (3 Python Execution)
Python basic course (10 inclusion notation)
Python Basic Course (5 List Tuples)
[Python] Python and security-① What is Python?
[Python] * args ** What is kwrgs?
[Python] What is a zip function?
[Python] What is a with statement?
[Python] What is @? (About the decorator)
[python] What is the sorted key?
Python for statement ~ What is iterable ~
Python Basic Course (14 Modules and Packages)
What is the python underscore (_) for?
Python> What is an extended slice?
What is namespace
[Python] What is pandas Series and DataFrame?
[Python] What is inherited by multiple inheritance?
RF Python Basic_01
What is NaN? NaN Zoya (Python) (394 days late)
Python is easy
What is Django? .. ..
What is dotenv?
What is POSIX?
What kind of programming language is Python?
Python learning basics ~ What is type conversion? ~
What is Linux
What is klass?
What is SALOME?
Basic Python writing
What is "mahjong" in the Python library? ??
What is Linux?
Python3 basic grammar
What is hyperopt?
Python is instance
Python Basic Course (at the end of 15)
RF Python Basic_02
What is Linux
Python basic course (4 numeric type / character string type)
What is pyvenv
What is __call__
What is Linux
What kind of book is the best-selling "Python Crash Course" in the world?
[What is an algorithm? Introduction to Search Algorithm] ~ Python ~
What is "functional programming" and "object-oriented" in Python?
What is wheezy in the Docker Python image?
I tried Python! ] I graduated today from "What is Python! Python!"!
This is the only basic review of Python ~ 1 ~
This is the only basic review of Python ~ 2 ~
This is the only basic review of Python ~ 3 ~