cours3
This commit is contained in:
6
python/3/books.csv
Normal file
6
python/3/books.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
, Book, Author, Year Released
|
||||
0, To Kill A Mockingbird,Harper Lee, 1960
|
||||
1, A Brief History of Time, Stephen Hawking, 1988
|
||||
2, The Great Gatsby , F. Scott Fitzgerald, 1922
|
||||
3, The Man Who Mistook His Wife for a Hat, Oliver Sacks, 1985
|
||||
4, Pride and Prejudice , Jane Austen , 1813
|
|
3
python/3/books.py
Normal file
3
python/3/books.py
Normal file
@@ -0,0 +1,3 @@
|
||||
file = open("books.csv","r")
|
||||
for row in file:
|
||||
print(row[3])
|
8
python/3/exoW3.py
Normal file
8
python/3/exoW3.py
Normal file
@@ -0,0 +1,8 @@
|
||||
num = int (input("Entrer un nombre entre 10 et 20 (compris): "))
|
||||
while num <= 10 or num >= 20:
|
||||
if num < 10:
|
||||
print("Trop faible")
|
||||
else:
|
||||
print("Trop élevé")
|
||||
num = int(input("Recommencer: "))
|
||||
print("Merci!")
|
Reference in New Issue
Block a user