Skip to content

Commit

Permalink
add two more questions 102,103 (Ebazhanov#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudgalalz authored Dec 22, 2021
1 parent 08dfabf commit 4917570
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions python/python-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1380,3 +1380,18 @@ num_list.remove(2)
- [ ] def self.get_next_card(): # method body goes here
- [x] def get_next_card(self): # method body goes here
- [ ] def self.get_next_card(self): # method body goes here

#### Q102. Which mode is not a valid way to access a file from within a Python script?

- [ ] write('w')
- [ ] scan('s')
- [x] append('a')
- [ ] read('r')

#### Q103. Which command will create a list from 10 down to 1? Example:
[10,9,8,7,6,5,4,3,2,1]

- [ ] reversed(list(range(1,11)))
- [x] list(reversed(range(1,10)))
- [ ] list(range(10,1,-1))
- [ ] list(reversed(range(1,11)))

0 comments on commit 4917570

Please sign in to comment.