# I can't even paste it a little

2022-02-02 21:14:25

One 、 The tax payable for the year-end bonus is calculated :
The year-end bonus is less than or equal to 4 Ten thousand yuan , Press 3% Pay taxes ;
The year-end bonus is greater than 4 ten thousand , Less than or equal to 10 Ten thousand yuan ,4 Press... For less than ten thousand yuan 3% Pay , beyond 4 Ten thousand , Press 10% Pay .
Annual bonus 10 Wan to 20 Ten thousand hours ,4 Press... For less than ten thousand yuan 3 Pay ,4 Wan to 10 Ten thousand press 10 Pay , higher than 10 10000 yuan press 20 Pay .
Annual bonus 20 More than ten thousand hours ,4 Press... For less than ten thousand yuan 3% Pay ,4 Wan to 10 Ten thousand press 10%,10 Wan to 20 Ten thousand press 20%, higher than 20 10000 yuan press 50% Pay . Enter the year-end bonus from the keyboard , Tax payable ?
Two 、(1) Programming input a paragraph of English , Count the number of words in English , And output the result .( Reference resources p197 example 7.5) perhaps
(2) Programming to realize , Find the words in both paragraphs of English , And put them in a new list , And the output .
3、 ... and 、(1) Class performance statistics . There are many students in a class , Each student has scores in multiple courses .
(2) Programming , Enter the number of students and courses through the keyboard , Input the student number of each student and the grade of each course through the keyboard , Take the student number and student grade as the student number 1:[ achievement 1, achievement 2, achievement 3] Student number 2:[ achievement 1, achievement 2, achievement 3].… The form of key value pairs is saved in the dictionary .
(3) And find out the total score of each student , And save the student's total score in a new dictionary , Shaped like a student number 1: Total score 1, Student number 2: Total score 2…, And lose the result
work .

``def money(m):    if m<=40000:        print(' The tax payable is :{}'.format(m*0.03))    elif 40000<m<=100000:        print(' The tax payable is :{}'.format(m*0.1))    elif 100000<m<=200000:        print(' The tax payable is :{}'.format(m*0.2))    else:        print(' The tax payable is :{}'.format(m*0.5))        if __name__ == '__main__':    money(eval(input(' Please enter the year-end bonus ：')))``