Skip to content

Commit 310d4d7

Browse files
committed
doc: add comments
Exercises on modules with comments. Drawing an item from the list.
1 parent 3f9fbcd commit 310d4d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex019.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Drawing an item from the list
12
#19- A teacher wants to draw one of his four students to erase the board. Make a program that helps him, reading the
23
# name of the students and writing the name of the chosen one on the screen.
34
import random
@@ -10,6 +11,7 @@
1011
print(f'The student chosen to erase the board is {chosen}.')
1112

1213

14+
#Sorteando um item na lista
1315
#19: Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faça um programa que ajude ele, lendo o
1416
#nome dos alunos e escrevendo na tela o nome do escolhido.
1517
'''import random

0 commit comments

Comments
 (0)