Hello. This is PyLoc, the first post of qiita. This time I will write about what python is.
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
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.
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.
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.
}
}
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