Traditional Culture Encyclopedia - Almanac inquiry - How to write python code?
How to write python code?
cnt=0
whileTrue:
Print ("Please enter score:")
I = input ()
If (noti):
Print ("input error!" )
Print ("number of students:" +str(cnt))
int I;
min = max = score[0];
avg = 0;
for(I = 0; I & ltn;; i++)
Bai avg+= score[I];
if(score[I]& gt; max)?
Specification code:
Python uses forced indentation to make the code readable. Programs written in Python language do not need to be compiled into binary code. Python's author designed a very strict grammar, so that bad programming habits (such as the next line of a statement is not indented to the right) cannot be compiled. One of the most important items is Python's indentation rules.
One difference from most other languages (such as C) is that the boundary of the module is completely determined by the position of the first character of each line (while C uses a pair of curly braces to clearly define the boundary of the module, regardless of the position of the characters).
- Previous article:Mobile phone yearbook online
- Next article:Gregorian calendar social day 2022
- Related articles
- How are the streets in Yong 'an City divided?
- What does Tianxi Peach Blossom Year mean?
- 2004 1 1 lunar calendar
- What ethnic groups are there in Danzhou?
- 202 1 agricultural calendar
- 1980 lunar calendar 165438+ early October 10 what is the date of the solar calendar?
- Lao Huang Li Kuang cha
- Xi, where can I buy a yearbook?
- Red sand day formula
- Chen Wunian's Old Yellow Calendar