Skip to content

Commit 9250c3a

Browse files
authored
Fixed some lint errors here
1 parent b53e7eb commit 9250c3a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
#Problem Name: worried_josh
1+
# Problem Name: worried_josh
22

3-
#Josh is worried about his test score. He wants to score in the top n, where n is a positive integer that the user inputs. Given a list of student names where the student with the highest score is the 0th index and the score goes down from there, print “YES!” if Josh scores in the top n, and “NO :(“ if he doesn’t. Assume n will not be greater than the number of students. Use enumerate to solve this problem.
3+
"""
44
5+
Josh is worried about his test score. He wants to score in the top n,
6+
where n is a positive integer that the user inputs. Given a list of
7+
student names where the student with the highest score is the 0th index
8+
and the score goes down from there, print “YES!” if Josh scores in the top n,
9+
and “NO :(“ if he doesn’t. Assume n will not be greater than the number of students.
10+
Use enumerate to solve this problem.
511
6-
#the list of student names is given and the n is a user input
7-
#remember the leftmost student has the highest score whereas the rightmost has the lowest score
12+
"""
13+
14+
# the list of student names is given and the n is a user input
15+
# remember the leftmost student = highest score, rightmost student = lowest score
816
students = [“Dan”, “Sherlocks”, “Jo”, “Josh”, “Dennis”, “Erwin”, “Ivan”, “Penny”]
917
n = int(input())
1018

11-
#write your code below
19+
#write your code below

0 commit comments

Comments
 (0)