python_basic data types

input and output

Requirement: Enter a student's three-second course grade and calculate the student's average grade.

(It should be noted that input("^^^^^") is the output string. This question needs to be converted to int type

variable

- A variable is an area in memory

- Naming of variables: variable names consist of letters, numbers, and underscores

Operators and Expressions

Arithmetic operators: +, -, *, /, **, %, //

Assignment operators: =, +=, -=, /=, *=, %=

Relational operators: >,>=,<,<=,!=,==

Logical operators: logical and, logical or, logical not





Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326691585&siteId=291194637