Skip to content

Commit fd0084c

Browse files
authored
updated part01
1 parent 04b119e commit fd0084c

30 files changed

+231
-0
lines changed

part01/02_seven_brothers.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Fix the code
2+
print("Aapo")
3+
print("Eero")
4+
print("Juhani")
5+
print("Lauri")
6+
print("Simeoni")
7+
print("Timo")
8+
print("Tuomas")
9+

part01/03_row_your_boat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Write your solution here
2+
print('Row, row, row your boat,\nGently down the stream.\nMerrily, merrily, merrily, merrily,\nLife is but a dream.')

part01/04_minutes_in_a_year.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Write your solution here
2+
print(60 * 24 * 365)

part01/05_print_code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Write your solution here
2+
print('print("Hello there!")')

part01/06_name_twice.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Write your solution here
2+
name = input('What is your name?')
3+
print(name)
4+
print(name)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Write your solution here
2+
name = input('What is your name?')
3+
print('!' + name + '!' + name + '!')

part01/08_name_and_address.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Write your solution here
2+
name = input("What is your given name? ")
3+
surname = input("What is your family name? ")
4+
street = input("What is your street address? ")
5+
code = input("What is your postal code?")
6+
7+
print(name, surname)
8+
print(street)
9+
print(code)

part01/09_utterances.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Fix the code
2+
part1 = input("The 1st part: ")
3+
part2 = input("The 2nd part: ")
4+
part3 = input("The 3rd part: ")
5+
print(part1 + '-' + part2 + '-' + part3 + '!')

part01/10_story.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Write your solution here
2+
name = input('Please type in a name:')
3+
year = input('Please type in a year:')
4+
5+
print(name, 'is a valiant knight, born in the year', year + '. One morning ' + name + ' woke up to an awful racket: a dragon was approaching the village. Only ' + name + ' could save the village\'s residents.')

part01/10b_extra_space.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
name = "Tim Tester"
3+
age = 20
4+
skill1 = "python"
5+
level1 = "beginner"
6+
skill2 = "java"
7+
level2 = "veteran"
8+
skill3 = "programming"
9+
level3 = "semiprofessional"
10+
lower = 2000
11+
upper = 3000
12+
13+
print("my name is", name + ", I am", age, "years old\n")
14+
print("my skills are")
15+
print(" -", skill1, "(" + level1 + ")")
16+
print(" -", skill2, "(" + level2 + ")")
17+
print(" -", skill3, "(" + level3 + ")\n")
18+
print("I am looking for a job with a salary of", str(lower) + "-" + str(upper), "euros per month")

0 commit comments

Comments
 (0)