---
jupytext:
    formats: md:myst
    text_representation:
        extension: .md
        format_name: myst
rise:
    start_slideshow_at: beginning

kernelspec:
    display_name: Python 3
    language: python3
    name: python3
---



# 部分优秀作业(PS7) #

## Quiz ##

### 张奕瑶 ###

https://www.onlinegdb.com/GGNB-0UjO


### 朱镜轩 ###

https://www.onlinegdb.com/uqK7343a0P

### 孙从珂 ###

https://www.onlinegdb.com/T_RMJhEO1


### 郑好 ###

https://www.onlinegdb.com/xpCFJ2RY0

### 吴予纶 ###

```python
import random

def questions():
    score = 0
    # --- Q1 ---
    month = eval(input('In which month of 2022 is the World cup starting?'))
    if month == 11:
        score += 1
        print('Correct!')
    else:
        print('Incorrect!')
        
    # --- Q2 ---
    choice1 = (input('Who is the basketball god?\nA. Wilson\nB. Ni JiaChen\nC. Grass Fish\nD. Fish\nE. Micheal Jordan'))
    if choice1 == 'E' or choice1 == 'e':
        print('Incorrect! The correct answer is A or B or C or D.')
    else:
        score += 1
        print('Correct')
        
    # --- Q3 ---
    choice2 = (input('Which of the following is a nickname of Jack Xi(奚豪君)?\nA. 肘子\nB. 鲸鱼\nC. 六中哈\nD. 奚比\nE. 科比'))
    if choice2 == 'D' or choice2 == 'd':
        score += 1
        print('Correct!')
    else:
        print('Incorrect! The correct answer is D.')

    # --- Q4 ---
    choice3 = (input('Which of the following is the basketball move Jack Xi(奚豪君) is known for?\nA. 雷霆尬拔\nB. 小抛投\nC. 护球肘\nD. 铁山靠\nE. 闪电五连鞭'))
    if choice3 == 'C' or choice3 == 'c':
        score += 1
        print('Correct!')
    else:
        print('Incorrect! The correct answer is C.')

    # --- Q5 ---
    name = (input('Which teacher is SCLS is a fan of marathon?'))
    if 'pan' in name or 'Pan' in name or '潘' in name or 'saijie' in name or 'Saijie' in name or '赛杰' in name:
        score += 1
        print('Correct!')
    else:
        print('Incorrect! The correct answer is Saijie.')

    finalScore = score / 5
    scoreStr = str(finalScore * 100)
    #print(finalScore, scoreStr)
    print('Congratulations, you got ' + str(score)  + ' answers right.')
    print('That is a score of ' + scoreStr +' percent.')
    
print('--------------------- Quiz ---------------------')
questions()
```

### 费沁沄 ###

https://www.onlinegdb.com/zIXhcPZtdr

### 陈楷焜 ###

https://onlinegdb.com/6JJ4FYQ1z

### 朱启新 ###

https://www.onlinegdb.com/SiAsSNl1rI


### 袁子皓 ###

https://www.onlinegdb.com/IqVrLraWP

### 廖恬欣 ###

https://www.onlinegdb.com/TvXyrZw7X

