20181235 Experiment 1 "Python Programming" Experiment Report

 

# 学 号 2019-2020-2 "Python Programming" Experiment 1 Report

Course: "Python Programming"

Class: 1812

Name: Zhou Yuhan

Student ID: 20181235

Experimental teacher: Wang Zhiqiang

Date of experiment: April 11, 2020

Compulsory / Elective: Public elective courses

# # 1. Experimental content

  • Design and complete a complete application program, complete operations such as addition, subtraction, multiplication and division, and more functions.

  • Examine the knowledge points of basic grammar, judgment statements, loop statements, logical operations, etc.

# # 2. Experimental process and results For this debugging I wrote a loop to debug and get the results in one step of debugging

The screenshots of the experimental results are as follows:

 

a=1
b=0
while a==1:
    b=b+1
    print(b)
    if b==5:
        a=0

 Code cloud upload process:

# # 3. Problems encountered during the experiment and the resolution process - Problem 1: None - Problem 1 Solution: None

# # Others (sentiment, thinking, etc.)

Debugging is very important. Only by learning to debug can we find out where the problem is. For example, this time I debugged a = 0, and lost a == 0. I can find the problem well when debugging.

# # References

[python3 condition judgment] ( https://www.runoob.com/python3/python3-conditional-statements.html )

[Method of judging multiple conditions] ( https://www.cnblogs.com/fingerling/p/8397695.html )

 

Guess you like

Origin www.cnblogs.com/394991776zyh/p/12678110.html