What is python

Introduction

Hello. This is PyLoc, the first post of qiita. This time I will write about what python is.

The site that I used as a reference

https://www.sejuku.net/blog/7720 Wikipedia https://qiita.com/maximum80/items/4116985b7276fdb45576 https://qiita.com/funa-tk/items/c4a239423eea018adea1 https://eng-entrance.com/java-hello-world http://www.tohoho-web.com/js/start.htm https://www.shido.info/py/tkinter1.html

What is python?

スクリーンショット (3).png

What is python

python means "python" in English and is an interpreted language developed by Guido van Rossum. According to Wikipedia

Python is a general-purpose programming language. The code is designed to be simple and easy to handle, and compared to C language, various programs are easy to understand and can be written with a small number of lines of code.

is what it reads.

Will you be frustrated?

The syntax is easy to understand in python, and IDLE will tell you where the error is. In other words, it is hard to be frustrated. For example

print("Hello!!World!!")

Let's say you have a program called. But by mistake

pront("Hello!!World!!")

If you type, IDLE will display it as follows. スクリーンショット (4).png

python is simple

Python is a very simple language. To prove it, let's look at a program that displays "hello" side by side with other languages. For python

from tkinter import *
window = Tk()
la = Tk.Label(None, text='Hello World!', font=('Times', '18'))
la.pack()
la.mainloop()

For C language

#include <stdio.h>

int main(int argc, char *args[])
{
    printf("hello\n");
    return 0;
}

For Java


public class hello{
   public static void main(String[] args){
     System.out.println("hello");
   }
}

For JavaScript

<!DOCTYPE html>
<html>
<head>
<title>hello</title>
</head>
<body>
<script>
document.write("hello");
</script>
</body>
</html>

For Swift

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        println("hello")
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}

Install python environment

I'll put a link for anyone who has read this article and wants to do python. Install IDLE. (I'm using IDLE.) IDLE IDLE stands for Integrated Deve Lopment Environment. According to python.org

IDLE is a Python integrated development environment for learning. IDLE has the following characteristics: Coded in 100% pure Python using the tkinter GUI toolkit Cross-platform: Works on Windows, Unix, macOS Python shell (interactive interpreter) window with code input, output, and error message coloring Multi-window text editor with multi-stage Undo, Python-enabled coloring, automatic indentation, call information display, auto-completion, and many other features Search in any window, replace in editor window, search across multiple files (grep) Debugger with persistent breakpoints, stepping, and visualization of global and local namespaces Settings, browsers, and other dialogs

You can download it at https://github.com/python/cpython/tree/3.8/Lib/idlelib/. For windows and mac users, this site, for Ubuntu users, please install from the Software Center. (For CentOS, enter with yum install python3.)

Recommended Posts

What is python
What is Python
[Python] What is Pipeline ...
[Python] What is virtualenv
[Python] Python and security-① What is Python?
[Python] * args ** What is kwrgs?
What is a python map?
Python Basic Course (1 What is Python)
What is namespace
What is Python? What is it used for?
[Python] What is a zip function?
[Python] What is a with statement?
What is copy.copy ()
What is dotenv?
What is Linux
What is klass?
[python] What is the sorted key?
What is SALOME?
Python for statement ~ What is iterable ~
What is Linux?
What is hyperopt?
Python is instance
What is the python underscore (_) for?
Python> What is an extended slice?
What is Linux
What is pyvenv
What is __call__
What is Linux
[Python] What is pandas Series and DataFrame?
What is NaN? NaN Zoya (Python) (394 days late)
What kind of programming language is Python?
Python learning basics ~ What is type conversion? ~
What is "mahjong" in the Python library? ??
What is a dog? Python installation volume
python int is infinite
What is a distribution?
What is Piotroski's F-Score?
What is Raspberry Pi?
What is Calmar Ratio?
What is a terminal?
[PyTorch Tutorial ①] What is PyTorch?
What is a hacker?
What is JSON? .. [Note]
What is Linux for?
What is a pointer?
What is ensemble learning?
What is TCP / IP?
What is Python's __init__.py?
What is an iterator?
What is UNIT-V Linux?
What is machine learning?
[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!"!
What are you comparing with Python is and ==?
[Introduction to Udemy Python 3 + Application] 54. What is Docstrings?
Tell me what a conformal map is, Python!
Python round is not strictly round
[Python] Debugging is more efficient!
What is Minisum or Minimax?