What to write Python,python program how to run it?
When we practice python in Windows, we can use Python's own idle.
Idle is a python shell,shell means "shell", is a way to interact with the program by typing text!
Open idle, we see >>> this prompt, meaning to tell you that Python is ready, waiting for you to enter Python instructions.
Next, we'll enter the "Hello world" that we're most familiar with.
Once the input is complete, tap and enter (enter)
Idle a shortcut, alt+n the previous statement, alt+p the next statement
I typed the print here with parentheses, and a lot of people are knocking print without parentheses, OK, we'll also knock on the non-parenthesized
Will prompt you for the wrong syntax, this is because Python2 write this is not a problem, Python3 and Python2 incompatible, so Python3 does not support such a notation.
We're trying to enter something new.
We see that the addition of data can be calculated, and the multiplication of large numbers can be calculated, the addition of strings to indicate the connection
The following attempt is made
When the string is multiplied by a number, the string is printed as many times as the number. into addition? Hint, type error, how the string type and int type are added.
Well, we've had our first experience with Python, and there will be more practice in the back, and embark on a journey to learn python.
Python has a lot of editors, when we learn python well, when we start using Python to write a project, or a Python script, you can use the following editor or IDE
Editor: Sublime, Atom, notepad++
Ide:pycharm, Eclipse
What should I use? It's a habit to look at yourself.
Start with "Hello World"