From 2b3a8f273b6160bbbdeed6f37747b1b747097667 Mon Sep 17 00:00:00 2001 From: GabrielaSocha <232490@student.uek.krakow.pl> Date: Wed, 15 Nov 2023 22:39:08 +0100 Subject: [PATCH 1/9] Zadania --- 02-TypesAndVariables/ex1.py | 2 ++ 02-TypesAndVariables/ex2.py | 4 +++ 02-TypesAndVariables/ex3.py | 8 ++++++ 02-TypesAndVariables/ex4.py | 3 +++ 02-TypesAndVariables/hello_world.py | 1 + 02-TypesAndVariables/zadanie10.py | 6 +++++ 02-TypesAndVariables/zadanie11.py | 6 +++++ 02-TypesAndVariables/zadanie13.py | 2 ++ 02-TypesAndVariables/zadanie18.py | 4 +++ 02-TypesAndVariables/zadanie19.py | 3 +++ 02-TypesAndVariables/zadanie20.py | 4 +++ 02-TypesAndVariables/zadanie21.py | 7 +++++ 02-TypesAndVariables/zadanie22.py | 3 +++ 02-TypesAndVariables/zadanie23.py | 10 ++++++++ 02-TypesAndVariables/zadanie24.py | 8 ++++++ 02-TypesAndVariables/zadanie25.py | 7 +++++ 02-TypesAndVariables/zadanie26.py | 7 +++++ 02-TypesAndVariables/zadanie27.py | 9 +++++++ 02-TypesAndVariables/zadanie28.py | 10 ++++++++ 02-TypesAndVariables/zadanie29.py | 6 +++++ 02-TypesAndVariables/zadanie30.py | 9 +++++++ 02-TypesAndVariables/zadanie31.py | 9 +++++++ 02-TypesAndVariables/zadanie32.py | 3 +++ 02-TypesAndVariables/zadanie33.py | 7 +++++ 02-TypesAndVariables/zadanie34.py | 7 +++++ 02-TypesAndVariables/zadanie35.py | 8 ++++++ 02-TypesAndVariables/zadanie36.py | 4 +++ 02-TypesAndVariables/zadanie37.py | 6 +++++ 02-TypesAndVariables/zadanie38.py | 2 ++ 02-TypesAndVariables/zadanie39.py | 6 +++++ 02-TypesAndVariables/zadanie40.py | 2 ++ 02-TypesAndVariables/zadanie41.py | 3 +++ 02-TypesAndVariables/zadanie42.py | 9 +++++++ 02-TypesAndVariables/zadanie43.py | 5 ++++ 02-TypesAndVariables/zadanie8.py | 6 +++++ 02-TypesAndVariables/zadanie9.py | 13 ++++++++++ 03-ControlStructures/test.py | 7 +++++ 03-ControlStructures/zadanie10.py | 5 ++++ 03-ControlStructures/zadanie11.py | 5 ++++ 03-ControlStructures/zadanie12.py | 8 ++++++ 03-ControlStructures/zadanie13.py | 6 +++++ 03-ControlStructures/zadanie14.py | 4 +++ 03-ControlStructures/zadanie15.py | 2 ++ 03-ControlStructures/zadanie16.py | 5 ++++ 03-ControlStructures/zadanie17.py | 7 +++++ 03-ControlStructures/zadanie18.1.py | 2 ++ 03-ControlStructures/zadanie18.py | 4 +++ 03-ControlStructures/zadanie19.py | 7 +++++ 03-ControlStructures/zadanie21.py | 6 +++++ 03-ControlStructures/zadanie22.py | 5 ++++ 03-ControlStructures/zadanie23.py | 6 +++++ 03-ControlStructures/zadanie24.py | 8 ++++++ 03-ControlStructures/zadanie25.py | 6 +++++ 03-ControlStructures/zadanie26.py | 7 +++++ 03-ControlStructures/zadanie27.py | 7 +++++ 03-ControlStructures/zadanie28.py | 9 +++++++ 03-ControlStructures/zadanie29.1.py | 15 +++++++++++ 03-ControlStructures/zadanie29.py | 24 ++++++++++++++++++ 03-ControlStructures/zadanie30.1.py | 16 ++++++++++++ 03-ControlStructures/zadanie30.py | 38 ++++++++++++++++++++++++++++ 03-ControlStructures/zadanie31.py | 16 ++++++++++++ 03-ControlStructures/zadanie32.1.py | 19 ++++++++++++++ 03-ControlStructures/zadanie32.py | 31 +++++++++++++++++++++++ 03-ControlStructures/zadanie33.py | 11 ++++++++ 03-ControlStructures/zadanie34.1.py | 21 +++++++++++++++ 03-ControlStructures/zadanie34.py | 24 ++++++++++++++++++ 03-ControlStructures/zadanie35.py | 12 +++++++++ 03-ControlStructures/zadanie36.py | 5 ++++ 03-ControlStructures/zadanie37.py | 15 +++++++++++ 03-ControlStructures/zadanie38.py | 2 ++ 03-ControlStructures/zadanie39.py | 13 ++++++++++ 03-ControlStructures/zadanie40.py | 2 ++ 03-ControlStructures/zadanie41.py | 12 +++++++++ 03-ControlStructures/zadanie42.py | 9 +++++++ 03-ControlStructures/zadanie43.py | 7 +++++ 03-ControlStructures/zadanie44.py | 9 +++++++ 03-ControlStructures/zadanie45.py | 14 ++++++++++ 03-ControlStructures/zadanie46.py | 4 +++ 03-ControlStructures/zadanie47.py | 3 +++ 03-ControlStructures/zadanie9.py | 6 +++++ 04-Subroutines/amount_to_pay.py | 13 ++++++++++ 04-Subroutines/binary.py | 5 ++++ 04-Subroutines/checking.py | 5 ++++ 04-Subroutines/converters.py | 10 ++++++++ 04-Subroutines/counting.py | 2 ++ 04-Subroutines/credit_card.py | 2 ++ 04-Subroutines/even_number_sum.py | 16 ++++++++++++ 04-Subroutines/months.py | 6 +++++ 04-Subroutines/mykeyboard.py | 14 ++++++++++ 04-Subroutines/mymath.py | 4 +++ 04-Subroutines/myprogram.py | 3 +++ 04-Subroutines/number_of_neg_even.py | 6 +++++ 04-Subroutines/sum_in_range.py | 5 ++++ 04-Subroutines/test.py | 20 +++++++++++++++ 04-Subroutines/zadanie1.py | 8 ++++++ 04-Subroutines/zadanie12.py | 13 ++++++++++ 04-Subroutines/zadanie13.py | 5 ++++ 04-Subroutines/zadanie17.py | 11 ++++++++ 04-Subroutines/zadanie18.py | 8 ++++++ 04-Subroutines/zadanie21.py | 10 ++++++++ 04-Subroutines/zadanie22.py | 3 +++ 04-Subroutines/zadanie23.py | 5 ++++ 04-Subroutines/zadanie24.py | 8 ++++++ 04-Subroutines/zadanie25.py | 10 ++++++++ 04-Subroutines/zadanie26.py | 4 +++ 04-Subroutines/zadanie27.py | 6 +++++ 04-Subroutines/zadanie28.py | 3 +++ 04-Subroutines/zadanie29.py | 4 +++ 04-Subroutines/zadanie3.py | 5 ++++ 04-Subroutines/zadanie30.py | 4 +++ 04-Subroutines/zadanie31.py | 4 +++ 04-Subroutines/zadanie32.py | 8 ++++++ 04-Subroutines/zadanie33.py | 8 ++++++ 04-Subroutines/zadanie34.py | 9 +++++++ 04-Subroutines/zadanie35.py | 18 +++++++++++++ 04-Subroutines/zadanie36.py | 17 +++++++++++++ 04-Subroutines/zadanie37.py | 13 ++++++++++ 04-Subroutines/zadanie38.py | 15 +++++++++++ 04-Subroutines/zadanie39.py | 6 +++++ 04-Subroutines/zadanie40.py | 17 +++++++++++++ 04-Subroutines/zadanie41.py | 19 ++++++++++++++ 04-Subroutines/zadanie42.py | 7 +++++ 04-Subroutines/zadanie43.py | 8 ++++++ 04-Subroutines/zadanie44.py | 22 ++++++++++++++++ 04-Subroutines/zadanie45.py | 16 ++++++++++++ 04-Subroutines/zadanie46.py | 11 ++++++++ 04-Subroutines/zadanie47.py | 6 +++++ 04-Subroutines/zadanie48.py | 11 ++++++++ 04-Subroutines/zadanie49.py | 14 ++++++++++ 04-Subroutines/zadanie49dobrze.py | 26 +++++++++++++++++++ 04-Subroutines/zadanie50.py | 8 ++++++ 04-Subroutines/zadanie51.py | 3 +++ 04-Subroutines/zadanie52.py | 8 ++++++ 05-Test1/mock/p3.py | 8 ++++++ 05-Test1/mock/p4.py | 6 +++++ 05-Test1/mock/p5.py | 10 ++++++++ 05-Test1/mock/p6.py | 19 ++++++++++++++ 06-Arrays/zadanie19.py | 29 +++++++++++++++++++++ 138 files changed, 1217 insertions(+) create mode 100644 02-TypesAndVariables/ex1.py create mode 100644 02-TypesAndVariables/ex2.py create mode 100644 02-TypesAndVariables/ex3.py create mode 100644 02-TypesAndVariables/ex4.py create mode 100644 02-TypesAndVariables/hello_world.py create mode 100644 02-TypesAndVariables/zadanie10.py create mode 100644 02-TypesAndVariables/zadanie11.py create mode 100644 02-TypesAndVariables/zadanie13.py create mode 100644 02-TypesAndVariables/zadanie18.py create mode 100644 02-TypesAndVariables/zadanie19.py create mode 100644 02-TypesAndVariables/zadanie20.py create mode 100644 02-TypesAndVariables/zadanie21.py create mode 100644 02-TypesAndVariables/zadanie22.py create mode 100644 02-TypesAndVariables/zadanie23.py create mode 100644 02-TypesAndVariables/zadanie24.py create mode 100644 02-TypesAndVariables/zadanie25.py create mode 100644 02-TypesAndVariables/zadanie26.py create mode 100644 02-TypesAndVariables/zadanie27.py create mode 100644 02-TypesAndVariables/zadanie28.py create mode 100644 02-TypesAndVariables/zadanie29.py create mode 100644 02-TypesAndVariables/zadanie30.py create mode 100644 02-TypesAndVariables/zadanie31.py create mode 100644 02-TypesAndVariables/zadanie32.py create mode 100644 02-TypesAndVariables/zadanie33.py create mode 100644 02-TypesAndVariables/zadanie34.py create mode 100644 02-TypesAndVariables/zadanie35.py create mode 100644 02-TypesAndVariables/zadanie36.py create mode 100644 02-TypesAndVariables/zadanie37.py create mode 100644 02-TypesAndVariables/zadanie38.py create mode 100644 02-TypesAndVariables/zadanie39.py create mode 100644 02-TypesAndVariables/zadanie40.py create mode 100644 02-TypesAndVariables/zadanie41.py create mode 100644 02-TypesAndVariables/zadanie42.py create mode 100644 02-TypesAndVariables/zadanie43.py create mode 100644 02-TypesAndVariables/zadanie8.py create mode 100644 02-TypesAndVariables/zadanie9.py create mode 100644 03-ControlStructures/test.py create mode 100644 03-ControlStructures/zadanie10.py create mode 100644 03-ControlStructures/zadanie11.py create mode 100644 03-ControlStructures/zadanie12.py create mode 100644 03-ControlStructures/zadanie13.py create mode 100644 03-ControlStructures/zadanie14.py create mode 100644 03-ControlStructures/zadanie15.py create mode 100644 03-ControlStructures/zadanie16.py create mode 100644 03-ControlStructures/zadanie17.py create mode 100644 03-ControlStructures/zadanie18.1.py create mode 100644 03-ControlStructures/zadanie18.py create mode 100644 03-ControlStructures/zadanie19.py create mode 100644 03-ControlStructures/zadanie21.py create mode 100644 03-ControlStructures/zadanie22.py create mode 100644 03-ControlStructures/zadanie23.py create mode 100644 03-ControlStructures/zadanie24.py create mode 100644 03-ControlStructures/zadanie25.py create mode 100644 03-ControlStructures/zadanie26.py create mode 100644 03-ControlStructures/zadanie27.py create mode 100644 03-ControlStructures/zadanie28.py create mode 100644 03-ControlStructures/zadanie29.1.py create mode 100644 03-ControlStructures/zadanie29.py create mode 100644 03-ControlStructures/zadanie30.1.py create mode 100644 03-ControlStructures/zadanie30.py create mode 100644 03-ControlStructures/zadanie31.py create mode 100644 03-ControlStructures/zadanie32.1.py create mode 100644 03-ControlStructures/zadanie32.py create mode 100644 03-ControlStructures/zadanie33.py create mode 100644 03-ControlStructures/zadanie34.1.py create mode 100644 03-ControlStructures/zadanie34.py create mode 100644 03-ControlStructures/zadanie35.py create mode 100644 03-ControlStructures/zadanie36.py create mode 100644 03-ControlStructures/zadanie37.py create mode 100644 03-ControlStructures/zadanie38.py create mode 100644 03-ControlStructures/zadanie39.py create mode 100644 03-ControlStructures/zadanie40.py create mode 100644 03-ControlStructures/zadanie41.py create mode 100644 03-ControlStructures/zadanie42.py create mode 100644 03-ControlStructures/zadanie43.py create mode 100644 03-ControlStructures/zadanie44.py create mode 100644 03-ControlStructures/zadanie45.py create mode 100644 03-ControlStructures/zadanie46.py create mode 100644 03-ControlStructures/zadanie47.py create mode 100644 03-ControlStructures/zadanie9.py create mode 100644 04-Subroutines/amount_to_pay.py create mode 100644 04-Subroutines/binary.py create mode 100644 04-Subroutines/checking.py create mode 100644 04-Subroutines/converters.py create mode 100644 04-Subroutines/counting.py create mode 100644 04-Subroutines/credit_card.py create mode 100644 04-Subroutines/even_number_sum.py create mode 100644 04-Subroutines/months.py create mode 100644 04-Subroutines/mykeyboard.py create mode 100644 04-Subroutines/mymath.py create mode 100644 04-Subroutines/myprogram.py create mode 100644 04-Subroutines/number_of_neg_even.py create mode 100644 04-Subroutines/sum_in_range.py create mode 100644 04-Subroutines/test.py create mode 100644 04-Subroutines/zadanie1.py create mode 100644 04-Subroutines/zadanie12.py create mode 100644 04-Subroutines/zadanie13.py create mode 100644 04-Subroutines/zadanie17.py create mode 100644 04-Subroutines/zadanie18.py create mode 100644 04-Subroutines/zadanie21.py create mode 100644 04-Subroutines/zadanie22.py create mode 100644 04-Subroutines/zadanie23.py create mode 100644 04-Subroutines/zadanie24.py create mode 100644 04-Subroutines/zadanie25.py create mode 100644 04-Subroutines/zadanie26.py create mode 100644 04-Subroutines/zadanie27.py create mode 100644 04-Subroutines/zadanie28.py create mode 100644 04-Subroutines/zadanie29.py create mode 100644 04-Subroutines/zadanie3.py create mode 100644 04-Subroutines/zadanie30.py create mode 100644 04-Subroutines/zadanie31.py create mode 100644 04-Subroutines/zadanie32.py create mode 100644 04-Subroutines/zadanie33.py create mode 100644 04-Subroutines/zadanie34.py create mode 100644 04-Subroutines/zadanie35.py create mode 100644 04-Subroutines/zadanie36.py create mode 100644 04-Subroutines/zadanie37.py create mode 100644 04-Subroutines/zadanie38.py create mode 100644 04-Subroutines/zadanie39.py create mode 100644 04-Subroutines/zadanie40.py create mode 100644 04-Subroutines/zadanie41.py create mode 100644 04-Subroutines/zadanie42.py create mode 100644 04-Subroutines/zadanie43.py create mode 100644 04-Subroutines/zadanie44.py create mode 100644 04-Subroutines/zadanie45.py create mode 100644 04-Subroutines/zadanie46.py create mode 100644 04-Subroutines/zadanie47.py create mode 100644 04-Subroutines/zadanie48.py create mode 100644 04-Subroutines/zadanie49.py create mode 100644 04-Subroutines/zadanie49dobrze.py create mode 100644 04-Subroutines/zadanie50.py create mode 100644 04-Subroutines/zadanie51.py create mode 100644 04-Subroutines/zadanie52.py create mode 100644 05-Test1/mock/p3.py create mode 100644 05-Test1/mock/p4.py create mode 100644 05-Test1/mock/p5.py create mode 100644 05-Test1/mock/p6.py create mode 100644 06-Arrays/zadanie19.py diff --git a/02-TypesAndVariables/ex1.py b/02-TypesAndVariables/ex1.py new file mode 100644 index 000000000..ad6c3dcd9 --- /dev/null +++ b/02-TypesAndVariables/ex1.py @@ -0,0 +1,2 @@ +name = input('Enter your name:') +print ('Hello', name) diff --git a/02-TypesAndVariables/ex2.py b/02-TypesAndVariables/ex2.py new file mode 100644 index 000000000..984fcd537 --- /dev/null +++ b/02-TypesAndVariables/ex2.py @@ -0,0 +1,4 @@ +x = float(input('Enter Hours: ')) +y = float(input('Enter Rate: ')) +z = x * y +print ('Pay:',z) \ No newline at end of file diff --git a/02-TypesAndVariables/ex3.py b/02-TypesAndVariables/ex3.py new file mode 100644 index 000000000..76a88845d --- /dev/null +++ b/02-TypesAndVariables/ex3.py @@ -0,0 +1,8 @@ +width = 17 +height = 12.0 +x = width//2 #variable type int +y = width/2.0 #variable type float +z = height/3 #variable type float +a = 1 + 2 * 5 #variable type int +print (x,'\n',y,'\n' ,z,'\n',a) +print (type(x),'\n',type(y),'\n' ,type(z),'\n',type(a)) \ No newline at end of file diff --git a/02-TypesAndVariables/ex4.py b/02-TypesAndVariables/ex4.py new file mode 100644 index 000000000..daa1f027e --- /dev/null +++ b/02-TypesAndVariables/ex4.py @@ -0,0 +1,3 @@ +celcius = float (input('Enter temperature in Celcius:')) +fahrenheit = (celcius * 2) + 30 +print ('Temperature in Fahrenheit:', fahrenheit) \ No newline at end of file diff --git a/02-TypesAndVariables/hello_world.py b/02-TypesAndVariables/hello_world.py new file mode 100644 index 000000000..6742e75da --- /dev/null +++ b/02-TypesAndVariables/hello_world.py @@ -0,0 +1 @@ +print ('Hello World') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie10.py b/02-TypesAndVariables/zadanie10.py new file mode 100644 index 000000000..3da32416d --- /dev/null +++ b/02-TypesAndVariables/zadanie10.py @@ -0,0 +1,6 @@ +name = 'Gabriela' +age = 19 +height = 168 +years = 25 +s = f'My name is {name}, I am {age} years old, and my height is {height} cm. In 6 years I will be {years} years old.' +print(s) \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie11.py b/02-TypesAndVariables/zadanie11.py new file mode 100644 index 000000000..ef000b60f --- /dev/null +++ b/02-TypesAndVariables/zadanie11.py @@ -0,0 +1,6 @@ +father = 5000 +mother = 8000 +number = 4 + +s = f'Enter father’s income: {father} Enter mother’s income:{mother} Enter number of people in family: {number} Total income: {father + mother} Income per person: {(father+mother)/number}' +print (s) \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie13.py b/02-TypesAndVariables/zadanie13.py new file mode 100644 index 000000000..af70ea8a0 --- /dev/null +++ b/02-TypesAndVariables/zadanie13.py @@ -0,0 +1,2 @@ +side = int(input('Enter cube side: ')) +print(f"The surface area of a cube with side {side} is {side**2 * 6}") \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie18.py b/02-TypesAndVariables/zadanie18.py new file mode 100644 index 000000000..1fe226d69 --- /dev/null +++ b/02-TypesAndVariables/zadanie18.py @@ -0,0 +1,4 @@ +x = 7 +y = 34 +x, y = y, x +print(f'Value of x after swapping: {x} Value of y after swapping: {y}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie19.py b/02-TypesAndVariables/zadanie19.py new file mode 100644 index 000000000..262370ff7 --- /dev/null +++ b/02-TypesAndVariables/zadanie19.py @@ -0,0 +1,3 @@ +side=float(input('cube side: ')) +print(f'cube volume: {side**3}') +print(f'cube surface area: {side**2*6}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie20.py b/02-TypesAndVariables/zadanie20.py new file mode 100644 index 000000000..3cf123c9c --- /dev/null +++ b/02-TypesAndVariables/zadanie20.py @@ -0,0 +1,4 @@ +a=int(input('Number one: ')) +b=int(input('Number two: ')) +print(f'Division result: {a//b}') +print(f'Remainder: {a%b}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie21.py b/02-TypesAndVariables/zadanie21.py new file mode 100644 index 000000000..09fd6078f --- /dev/null +++ b/02-TypesAndVariables/zadanie21.py @@ -0,0 +1,7 @@ +height_in_cm = float(input("Enter your height in centimeters: ")) + +height_in_inches = height_in_cm / 2.54 +height_in_feet = int(height_in_inches // 12) +remaining_inches = int(height_in_inches % 12) + +print(f"I am {height_in_cm}cm tall, i.e. {height_in_feet} feet and {remaining_inches} inches.") diff --git a/02-TypesAndVariables/zadanie22.py b/02-TypesAndVariables/zadanie22.py new file mode 100644 index 000000000..ade53fa87 --- /dev/null +++ b/02-TypesAndVariables/zadanie22.py @@ -0,0 +1,3 @@ +a=3 +b=5 +print(f'{a} - {b} = {a-b}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie23.py b/02-TypesAndVariables/zadanie23.py new file mode 100644 index 000000000..5a292f602 --- /dev/null +++ b/02-TypesAndVariables/zadanie23.py @@ -0,0 +1,10 @@ +import math +a=float(input('First side:')) +b=float(input('Second side:')) +c=float(input('Third side:')) +s=(a+b+c)/2 +if ((a + b) > c and (a + c) > b and (b + c) > a) : + print(f'Triangle area: {round(math.sqrt(s*(s-a)*(s-b)*(s-c)), 2)}') + print(f'Triangle circumference: {a+b+c}') +else : + print("Such triangle doesn't exist") \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie24.py b/02-TypesAndVariables/zadanie24.py new file mode 100644 index 000000000..423b1da80 --- /dev/null +++ b/02-TypesAndVariables/zadanie24.py @@ -0,0 +1,8 @@ +s=str(input("Enter vehicle registration number: ")) +if s[0:2] == "KR" or s [0:2] == "KK" : + b = True + print('Car from Kraków:', b ) +else : + c = False + print('Car from Kraków:', c) + \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie25.py b/02-TypesAndVariables/zadanie25.py new file mode 100644 index 000000000..e639a9746 --- /dev/null +++ b/02-TypesAndVariables/zadanie25.py @@ -0,0 +1,7 @@ +a=int(input('Enter your age: ')) +if a <= 26 : + b = True + print(f'Exemption from paying taxes: {b}') +else : + b = False + print(f'Exemption from paying taxes: {b}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie26.py b/02-TypesAndVariables/zadanie26.py new file mode 100644 index 000000000..720283526 --- /dev/null +++ b/02-TypesAndVariables/zadanie26.py @@ -0,0 +1,7 @@ +a=int(input('Enter number: ')) +if a%2 == 0 : + b = True + print(f'Number is even: {b}') +else : + b =False + print(f'Number is even: {b}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie27.py b/02-TypesAndVariables/zadanie27.py new file mode 100644 index 000000000..30de27868 --- /dev/null +++ b/02-TypesAndVariables/zadanie27.py @@ -0,0 +1,9 @@ +a = float(input('Enter number: ')) +b = range(-10, 11) +if a in b: + c = True + print(f'Number in the range <-10,10>: {c}') +else : + c = False + print(f'Number in the range <-10,10>: {c}') + diff --git a/02-TypesAndVariables/zadanie28.py b/02-TypesAndVariables/zadanie28.py new file mode 100644 index 000000000..5519a42b7 --- /dev/null +++ b/02-TypesAndVariables/zadanie28.py @@ -0,0 +1,10 @@ +a = float(input('Enter your height in cm: ')) +b = float(input('Enter your weight in kg: ')) +d = round(b/(a/100)**2, 2) +print(f'Your BMI index:{d}') +if (d <= 24.9 and d >= 18.5 ) : + c = True + print(f'Correct weight: {c}') +else : + c = False + print(f'Correct weight: {c}') diff --git a/02-TypesAndVariables/zadanie29.py b/02-TypesAndVariables/zadanie29.py new file mode 100644 index 000000000..a8fd9f7f9 --- /dev/null +++ b/02-TypesAndVariables/zadanie29.py @@ -0,0 +1,6 @@ +import random +a = random.randint(1,6) +b = random.randint(1,6) +c = random.randint(1,6) +print (f'Values diced in 3 rolls: {a}, {b}, {c}') +print (f'Sum of values diced in 3 rolls: {a + b + c}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie30.py b/02-TypesAndVariables/zadanie30.py new file mode 100644 index 000000000..47ba5116a --- /dev/null +++ b/02-TypesAndVariables/zadanie30.py @@ -0,0 +1,9 @@ +import random +a = random.randint(1, 6) +print(f'Dice rolled: {a}') +if a == 1 or a ==6 : + b = True + print(f'Special number:{b}') +else : + b = False + print(f'Special number: {b}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie31.py b/02-TypesAndVariables/zadanie31.py new file mode 100644 index 000000000..4644409f0 --- /dev/null +++ b/02-TypesAndVariables/zadanie31.py @@ -0,0 +1,9 @@ +import random +a = random.randint(1, 6) +b = int(input('Enter number between 1 and 6: ')) +if a == b: + c = True + print(c) +else : + c = False + print(c) \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie32.py b/02-TypesAndVariables/zadanie32.py new file mode 100644 index 000000000..60ea31737 --- /dev/null +++ b/02-TypesAndVariables/zadanie32.py @@ -0,0 +1,3 @@ +a = float(input('Amount: ')) +print (f'Amount: {round(a,2)}') +print (f'VAT 23%: {round(a*0.23, 2)}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie33.py b/02-TypesAndVariables/zadanie33.py new file mode 100644 index 000000000..b8d023f0d --- /dev/null +++ b/02-TypesAndVariables/zadanie33.py @@ -0,0 +1,7 @@ +a = input('Enter password: ') +if len(a) >= 8 : + b = True + print(f'Password is valid: {b}') +else : + b = False + print(f'Password is valid: {b}') diff --git a/02-TypesAndVariables/zadanie34.py b/02-TypesAndVariables/zadanie34.py new file mode 100644 index 000000000..9fa26e9b2 --- /dev/null +++ b/02-TypesAndVariables/zadanie34.py @@ -0,0 +1,7 @@ +a = float((input('Enter vehicle speed: '))) +if a >= 40 and a <= 140: + c = True + print(f'Speed is valid: {c}') +else : + c = False + print(f'Speed is valid: {c}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie35.py b/02-TypesAndVariables/zadanie35.py new file mode 100644 index 000000000..b6b5dc837 --- /dev/null +++ b/02-TypesAndVariables/zadanie35.py @@ -0,0 +1,8 @@ +a = float(input('Enter tree circumference in cm: ')) +b = a / (2*3.14) +if (2*b) >= 50 : + c = True + print(f'Tree can be cut down: {c}') +else : + c = False + print(f'Tree can be cut down: {c}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie36.py b/02-TypesAndVariables/zadanie36.py new file mode 100644 index 000000000..07be03867 --- /dev/null +++ b/02-TypesAndVariables/zadanie36.py @@ -0,0 +1,4 @@ +from decimal import* +a = float(input('Bank buys EUR: ')) +b = float(input('Bank sells EUR: ')) +print(f'Spread: {round(Decimal(abs(a-b)), 4)}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie37.py b/02-TypesAndVariables/zadanie37.py new file mode 100644 index 000000000..9f0dca39c --- /dev/null +++ b/02-TypesAndVariables/zadanie37.py @@ -0,0 +1,6 @@ +personal_data = 'Mr. John May, born on 1998-02-16' +print(f'Description: {personal_data}') +print(f'Name: {personal_data[4:8]}') +print(f'Surname: {personal_data[9:12]}') +print(f'Initials: {personal_data[4]}{personal_data[9]}') +print(f'Born: {personal_data[22:32]}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie38.py b/02-TypesAndVariables/zadanie38.py new file mode 100644 index 000000000..da58e6378 --- /dev/null +++ b/02-TypesAndVariables/zadanie38.py @@ -0,0 +1,2 @@ +a = input('Enter phone number: ') +print(f'Phone number: {a[0:3]}-{a[3:6]}-{a[6:9]}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie39.py b/02-TypesAndVariables/zadanie39.py new file mode 100644 index 000000000..08695427d --- /dev/null +++ b/02-TypesAndVariables/zadanie39.py @@ -0,0 +1,6 @@ +a = float(input('Enter price: ')) +b = float(input('Enter discount(%): ')) +print (f'Price: {a}') +print(f'Discount: {b}%') +print(f'Price with discount: {round((1-b/100)*a, 2)}') +print(f'Reduction: {round(a-(1-b/100)*a, 2)}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie40.py b/02-TypesAndVariables/zadanie40.py new file mode 100644 index 000000000..baff232ae --- /dev/null +++ b/02-TypesAndVariables/zadanie40.py @@ -0,0 +1,2 @@ +a = input('Enter credit card number: ') +print(f'Credit card number: {a[0:4]} {a[4:8]} {a[8:12]} {a[12:16]}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie41.py b/02-TypesAndVariables/zadanie41.py new file mode 100644 index 000000000..f788ef8ca --- /dev/null +++ b/02-TypesAndVariables/zadanie41.py @@ -0,0 +1,3 @@ +a = int(input('Enter number: ')) +print(f'Binary number: {bin(a)}') +print(f' Hexadecimal: {hex(a)}') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie42.py b/02-TypesAndVariables/zadanie42.py new file mode 100644 index 000000000..433a2f538 --- /dev/null +++ b/02-TypesAndVariables/zadanie42.py @@ -0,0 +1,9 @@ +a = (input('Enter binary number: ')) +if len(a) <= 4 : + b = int(a[0]) + c = int(a[1]) + d = int(a[2]) + e = int(a[3]) + print(f'Binary number in decimal notation: {(b*2**3) + (c*2**2) + (d*2**1) + (e*2**0)}') +else : + print("You can only enter four-digit number!") \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie43.py b/02-TypesAndVariables/zadanie43.py new file mode 100644 index 000000000..c774ae7ef --- /dev/null +++ b/02-TypesAndVariables/zadanie43.py @@ -0,0 +1,5 @@ +name = 'Gabrysia' +print(name) +for i in name: + numeric_representation = ord(i) + print(f'{i}({numeric_representation})',end=' ') \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie8.py b/02-TypesAndVariables/zadanie8.py new file mode 100644 index 000000000..894d7a456 --- /dev/null +++ b/02-TypesAndVariables/zadanie8.py @@ -0,0 +1,6 @@ +number1 = 71 +number2 = 14 +result = number1 + number2 +print('Number 1:', number1) +print('Number 2:', number2) +print('The result of summation:', result) \ No newline at end of file diff --git a/02-TypesAndVariables/zadanie9.py b/02-TypesAndVariables/zadanie9.py new file mode 100644 index 000000000..420455447 --- /dev/null +++ b/02-TypesAndVariables/zadanie9.py @@ -0,0 +1,13 @@ +n1 = 5 +n2 = 1 +n3 = 8 +n4 = 6 +n5 = 3 +sum = n1 + n2 + n3 + n4 + n5 +print('Sum of all variables:', sum) +x = n1**2 + n2**2 + n3**2 + n4**2 + n5**2 +print('Sum of all squared variables:', x) +y = n3 / n5 +print('Quotient of third and fifth variable:', y) +z = n3 == n4 +print('Third variable is equal to forth variable:', z) \ No newline at end of file diff --git a/03-ControlStructures/test.py b/03-ControlStructures/test.py new file mode 100644 index 000000000..203933178 --- /dev/null +++ b/03-ControlStructures/test.py @@ -0,0 +1,7 @@ +sum = 0 +number = 1 +while number <= 5: + sum = sum + number + number = number + 1 +message = f"Sum of numbers in <1,5> is {sum}" +print(message) \ No newline at end of file diff --git a/03-ControlStructures/zadanie10.py b/03-ControlStructures/zadanie10.py new file mode 100644 index 000000000..58cc55e06 --- /dev/null +++ b/03-ControlStructures/zadanie10.py @@ -0,0 +1,5 @@ +number = int(input('Enter number: ')) +if number >= 0: + print(f'|{number}| = {number}') +else: + print(f'|{number}| = {-number}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie11.py b/03-ControlStructures/zadanie11.py new file mode 100644 index 000000000..28f979440 --- /dev/null +++ b/03-ControlStructures/zadanie11.py @@ -0,0 +1,5 @@ +a = int(input('Enter number: ')) +if a%2 == 0: + print('Number is even') +else: + print('Number is odd') \ No newline at end of file diff --git a/03-ControlStructures/zadanie12.py b/03-ControlStructures/zadanie12.py new file mode 100644 index 000000000..fc8451dc3 --- /dev/null +++ b/03-ControlStructures/zadanie12.py @@ -0,0 +1,8 @@ +first_name = str(input('Enter first person name: ')) +first_age = int(input('Enter fist person age: ')) +second_name = str(input('Enter second person name: ')) +second_age = int(input('Enter second person age: ')) +if first_age >= 18 and second_age >= 18: + print(f'Both {first_name} and {second_name} are adults.') +else: + print("At least one of them isn't adult.") \ No newline at end of file diff --git a/03-ControlStructures/zadanie13.py b/03-ControlStructures/zadanie13.py new file mode 100644 index 000000000..7b4bb3cf8 --- /dev/null +++ b/03-ControlStructures/zadanie13.py @@ -0,0 +1,6 @@ +a = int(input('Enter number 1: ')) +b = int(input('Enter number 2: ')) +if (a >= 0 or b >= 0): + print(f'At least one of entered numbers {a} and {b} is not negative') +else: + print(f'Both of numbers are negative') \ No newline at end of file diff --git a/03-ControlStructures/zadanie14.py b/03-ControlStructures/zadanie14.py new file mode 100644 index 000000000..008e3b17f --- /dev/null +++ b/03-ControlStructures/zadanie14.py @@ -0,0 +1,4 @@ +i = 1 +while i <= 5: + print('Practice makes perfect!!') + i = i + 1 diff --git a/03-ControlStructures/zadanie15.py b/03-ControlStructures/zadanie15.py new file mode 100644 index 000000000..519c5a76e --- /dev/null +++ b/03-ControlStructures/zadanie15.py @@ -0,0 +1,2 @@ +for i in range(5): + print('Practice makes perfect!') diff --git a/03-ControlStructures/zadanie16.py b/03-ControlStructures/zadanie16.py new file mode 100644 index 000000000..3993c3076 --- /dev/null +++ b/03-ControlStructures/zadanie16.py @@ -0,0 +1,5 @@ +sum = 0 +for i in range(1,6): + print(i) + sum = sum + i +print(f'Sum is {sum}') diff --git a/03-ControlStructures/zadanie17.py b/03-ControlStructures/zadanie17.py new file mode 100644 index 000000000..c08b35972 --- /dev/null +++ b/03-ControlStructures/zadanie17.py @@ -0,0 +1,7 @@ +sum = 0 +i = 1 +while i <= 5: + print(i) + sum = sum + i + i = i + 1 +print(f'Sum is {sum}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie18.1.py b/03-ControlStructures/zadanie18.1.py new file mode 100644 index 000000000..f138fc0a0 --- /dev/null +++ b/03-ControlStructures/zadanie18.1.py @@ -0,0 +1,2 @@ +for i in range(1,11): + print(f'1/{i} = {1/i}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie18.py b/03-ControlStructures/zadanie18.py new file mode 100644 index 000000000..b300c795d --- /dev/null +++ b/03-ControlStructures/zadanie18.py @@ -0,0 +1,4 @@ +i = 1 +while i <= 10: + print(f'1/{i} = {1/i}') + i = i + 1 \ No newline at end of file diff --git a/03-ControlStructures/zadanie19.py b/03-ControlStructures/zadanie19.py new file mode 100644 index 000000000..d0e45a3b9 --- /dev/null +++ b/03-ControlStructures/zadanie19.py @@ -0,0 +1,7 @@ +sum = 0 +i = 1 +while i <= 10: + if i%2 == 0: + sum = sum + i + i = i + 1 +print (f'Sum is: {sum}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie21.py b/03-ControlStructures/zadanie21.py new file mode 100644 index 000000000..7b5bee89a --- /dev/null +++ b/03-ControlStructures/zadanie21.py @@ -0,0 +1,6 @@ +a = int(input('Enter first number: ')) +b = int(input('Enter second number: ')) +if a > b: + print(f'Numbers in ascending order: {b}, {a}') +else: + print(f'Numbers in ascending order: {a}, {b}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie22.py b/03-ControlStructures/zadanie22.py new file mode 100644 index 000000000..1ed429af1 --- /dev/null +++ b/03-ControlStructures/zadanie22.py @@ -0,0 +1,5 @@ +a = str(input('Enter name: ')) +if a[-1] == 'a': + print(f'{a} - Polish female name') +else: + print('Unknown') \ No newline at end of file diff --git a/03-ControlStructures/zadanie23.py b/03-ControlStructures/zadanie23.py new file mode 100644 index 000000000..7a628d8b1 --- /dev/null +++ b/03-ControlStructures/zadanie23.py @@ -0,0 +1,6 @@ +a = int(input("Enter the dog's age in human years: ")) +if a > 2: + print(f"The dog's age in dog’s years is {(2*10.5)+(a-2)*4} years.") +else: + print(f"The dog's age in dog’s years is {a*10.5} years.") + \ No newline at end of file diff --git a/03-ControlStructures/zadanie24.py b/03-ControlStructures/zadanie24.py new file mode 100644 index 000000000..43ef2cd34 --- /dev/null +++ b/03-ControlStructures/zadanie24.py @@ -0,0 +1,8 @@ +a = float(input('Current product price: ')) +b = float(input('Previous product price: ')) +if a/b <= 0.9: + print("Buy the product!") + print(f"Product price reduced by {round((1-a/b)*100, 2)}%") +else: + print("Don't buy the product!") + print(f"Product price reduced by {round((1-a/b)*100, 2)}%") \ No newline at end of file diff --git a/03-ControlStructures/zadanie25.py b/03-ControlStructures/zadanie25.py new file mode 100644 index 000000000..b1e9b45c0 --- /dev/null +++ b/03-ControlStructures/zadanie25.py @@ -0,0 +1,6 @@ +a = int(input('Number of products purchased: ')) +b = float(input('Product price: ')) +if a > 2: + print(f'Amount to pay: {2*b+(a-2)*(b*0.75)}') +else: + print(f'Amount to pay: {a*b}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie26.py b/03-ControlStructures/zadanie26.py new file mode 100644 index 000000000..f7b8b5fa3 --- /dev/null +++ b/03-ControlStructures/zadanie26.py @@ -0,0 +1,7 @@ +car_speed = int(input('Enter car speed: ')) +speed_limit_min = 40 +speed_limit_max = 140 +if car_speed < speed_limit_min or car_speed > speed_limit_max: + print('Warning: invalid car speed!!') +else: + print('The car speed is appropriate') diff --git a/03-ControlStructures/zadanie27.py b/03-ControlStructures/zadanie27.py new file mode 100644 index 000000000..bc58140c8 --- /dev/null +++ b/03-ControlStructures/zadanie27.py @@ -0,0 +1,7 @@ +facebook = True +twitter = False +instagram = True +if (instagram == True and facebook == True) or (twitter == True and facebook == True) or (twitter == True and instagram == True): + print('A person can be a good influencer!') +else: + print("A person can't be a good influencer!") diff --git a/03-ControlStructures/zadanie28.py b/03-ControlStructures/zadanie28.py new file mode 100644 index 000000000..c65440392 --- /dev/null +++ b/03-ControlStructures/zadanie28.py @@ -0,0 +1,9 @@ +a = str(input('Enter EAN-13 article number: ')) +if len(a) == 13: + print('Article number is correct') + if (a[:3] == '590'): + print('Article manufactured in Poland') + else: + print('Article not manufactured in Poland') +else: + print('Article number is incorrect') \ No newline at end of file diff --git a/03-ControlStructures/zadanie29.1.py b/03-ControlStructures/zadanie29.1.py new file mode 100644 index 000000000..9acf17811 --- /dev/null +++ b/03-ControlStructures/zadanie29.1.py @@ -0,0 +1,15 @@ +washing_product = str(input('What do you want to wash?: ')) +spin = str(input('Would you like an additional spin? No/Yes: ')) +rinse = str(input('Would you like an additional rinse? No/Yes: ')) +washing_product = washing_product.lower() +washing_times = { + "shoes" : 20, + "jacket": 40, + "underware" : 70 +} +total_time = washing_times.get(washing_product, 0) +if rinse == 'Yes': + total_time+=15 +if spin == 'Yes': + total_time+=9 +print(f'Total washing time: {total_time}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie29.py b/03-ControlStructures/zadanie29.py new file mode 100644 index 000000000..a2833c1d7 --- /dev/null +++ b/03-ControlStructures/zadanie29.py @@ -0,0 +1,24 @@ +time = 0 +washing_product = str(input("What do you want to wash?")) +rinse = bool(input('Do you want an additional rinse?(True/False)')) +spin = bool(input('Do you want an additional spin?(True/False)')) +washing_product = washing_product.lower() +if washing_product == 'jacket': + time = time + 40 + if spin == 'True': + time = time + 9 + elif rinse == 'True': + time = time + 15 +elif washing_product == 'shoes': + time = time + 20 + if spin == False: + time = time + 9 + elif rinse == True: + time = time + 15 +elif washing_product == 'underware': + time = time + 70 + if spin == 'True': + time == time + 9 + elif rinse == 'True': + time = time + 15 +print(f'Total washing time: {time}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie30.1.py b/03-ControlStructures/zadanie30.1.py new file mode 100644 index 000000000..84d00e2e1 --- /dev/null +++ b/03-ControlStructures/zadanie30.1.py @@ -0,0 +1,16 @@ +time_24_hour = input("Enter time (24-hour format, hh:mm): ") + +hours, minutes = map(int, time_24_hour.split(':')) + +period = "am" if hours < 12 else "pm" + +if hours == 0: + hours_12_hour = 12 +elif hours <= 12: + hours_12_hour = hours +else: + hours_12_hour = hours - 12 + +time_12_hour = f"{hours_12_hour:02d}:{minutes:02d}{period}" + +print(f"Time in 12-hour format: {time_12_hour}") diff --git a/03-ControlStructures/zadanie30.py b/03-ControlStructures/zadanie30.py new file mode 100644 index 000000000..2b00b4268 --- /dev/null +++ b/03-ControlStructures/zadanie30.py @@ -0,0 +1,38 @@ +a = str(input('Enter time (24-hour format): ')) +if len(a)==5: + b = a[0] + c = a[1] + d = int(b+c) + f = a[3] + g = a[4] + h = int(f+g) + if d > 12 and d < 24: + if a[3]== '0': + print(f"Time in 12-hour format:{d-12}:0{h}pm") + else: + print(f"Time in 12-hour format:{d-12}:{h}pm") + elif d == 24: + if a[3]=='0': + print(f"Time in 12-hour format:{d-12}:0{h}am") + elif a[4]=='0': + print(f"Time in 12-hour format:{d-12}:{h}0am") + else: + print(f"Time in 12-hour format:{d-12}:{h}am") + elif d > 9 and d <= 12: + if a[3]=='0': + print(f"Time in 12-hour format:{d}:0{h}am") + elif a[4]=='0': + print(f"Time in 12-hour format:{d}:{h}0am") + else: + print(f"Time in 12-hour format:{d}:{h}am") +if len(a)==4: + e = a[0] + i = int(e) + j = a[2] + k= a[3] + l = int(j+k) + if i>0 : + if a[2]=='0': + print(f"Time in 12-hour format:{e}:0{l}am") + else: + print(f"Time in 12-hour format:{e}:{l}am") \ No newline at end of file diff --git a/03-ControlStructures/zadanie31.py b/03-ControlStructures/zadanie31.py new file mode 100644 index 000000000..889597d3c --- /dev/null +++ b/03-ControlStructures/zadanie31.py @@ -0,0 +1,16 @@ +x = float(input('Enter x: ')) +y = float(input('Enter y: ')) +if x > 0 and y > 0: + print(f'Point P({x},{y}) is in the first quadrant of the coordinate system') +elif x < 0 and y > 0: + print(f'Point P({x},{y}) is in the second quadrant of the coordinate system') +elif x < 0 and y < 0: + print(f'Point P({x},{y}) is in the third quadrant of the coordinate system') +elif x > 0 and y < 0: + print(f'Point P({x},{y}) is in the fourth quadrant of the coordinate system') +elif x == 0 and y == 0: + print(f'Point P({x},{y}) is at the origin of the coordinate system') +elif x == 0 and y != 0: + print(f'Point P({x},{y}) is on the y-axis') +elif x != 0 and y == 0: + print(f'Point P({x},{y}) is on the x-axis') \ No newline at end of file diff --git a/03-ControlStructures/zadanie32.1.py b/03-ControlStructures/zadanie32.1.py new file mode 100644 index 000000000..9984e4456 --- /dev/null +++ b/03-ControlStructures/zadanie32.1.py @@ -0,0 +1,19 @@ +interest_in_computer_science = False +like_computer_games = False +have_an_instagram_account = False + +interest_in_computer_science_answer = input('Are you interested in computer science? (Y/N): ') +if interest_in_computer_science_answer == 'Y': + interest_in_computer_science = True + +like_computer_games_answer = input('Do you like playing computer games? (Y/N): ') +if like_computer_games_answer == 'Y': + like_computer_games = True + +have_an_instagram_account_answer = input('Do you have an Instagram account? (Y/N): ') +if have_an_instagram_account_answer == 'Y': + have_an_instagram_account = True + +print(f'Interested in computer science: {'Yes' if interest_in_computer_science == True else 'No'}') +print(f'Playing computer games: {'Yes' if like_computer_games == True else 'No'}') +print(f'Has an Instagram account: {'Yes' if have_an_instagram_account == True else 'No'}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie32.py b/03-ControlStructures/zadanie32.py new file mode 100644 index 000000000..8c37aa8b6 --- /dev/null +++ b/03-ControlStructures/zadanie32.py @@ -0,0 +1,31 @@ +a = str(input('Are you interested in computer science? (Y/N): ')) +b = str(input('Do you like playing computer games? (Y/N): ')) +c = str(input('Do you have an Instagram account? (Y/N): ')) +if a == 'Y': + print('Interested in computer science: Yes') + if b =='Y': + print('Playing computer games: Yes') + if c == 'Y': + print('Has an Instagram account: Yes') + elif c == 'N': + print('Has an Instagram account: No') + elif b == 'N': + print('Playing computer games:No') + if c == 'Y': + print('Has an Instagram account: Yes') + elif c == 'N': + print('Has an Instagram account: No') +elif a == 'N': + print('Interested in computer science: No') + if b =='Y': + print('Playing computer games: Yes') + if c == 'Y': + print('Has an Instagram account: Yes') + elif c == 'N': + print('Has an Instagram account: No') + elif b == 'N': + print('Playing computer games:No') + if c == 'Y': + print('Has an Instagram account: Yes') + elif c == 'N': + print('Has an Instagram account: No') \ No newline at end of file diff --git a/03-ControlStructures/zadanie33.py b/03-ControlStructures/zadanie33.py new file mode 100644 index 000000000..30fcf5bd5 --- /dev/null +++ b/03-ControlStructures/zadanie33.py @@ -0,0 +1,11 @@ +a = int(input('Enter decimal number: ')) +d = a +binary_digits = [] +if a == 0: + binary_digits.append(str(a)) +while a>0: + reminder = a%2 + a = a//2 + binary_digits.append(str(reminder)) +print (f'{d}(10) = {''.join(reversed(binary_digits))}(2)') + \ No newline at end of file diff --git a/03-ControlStructures/zadanie34.1.py b/03-ControlStructures/zadanie34.1.py new file mode 100644 index 000000000..ed515120a --- /dev/null +++ b/03-ControlStructures/zadanie34.1.py @@ -0,0 +1,21 @@ +amount = int(input("Enter the amount in PLN: ")) + +coins_5_zl = 0 +coins_2_zl = 0 +coins_1_zl = 0 + +while amount > 0: + if amount >= 5: + coins_5_zl += 1 + amount -= 5 + elif amount >= 2: + coins_2_zl += 1 + amount -= 2 + else: + coins_1_zl += 1 + amount -= 1 + +print(f"The amount of PLN {amount} in coins:") +print(f"5 zł – {coins_5_zl}") +print(f"2 zł – {coins_2_zl}") +print(f"1 zł – {coins_1_zl}") \ No newline at end of file diff --git a/03-ControlStructures/zadanie34.py b/03-ControlStructures/zadanie34.py new file mode 100644 index 000000000..f84463656 --- /dev/null +++ b/03-ControlStructures/zadanie34.py @@ -0,0 +1,24 @@ +a = int(input('Enter the amount in PLN: ')) +b_5 = 0 +b_2 = 0 +b_1 = 0 +if a%5 != 0 and a%5 != 5: + b_5 = a//5 + print(f'5zł - {b_5}') + a = a - b_5*5 + if a%2 != 0 and a%2 != 2: + b_2 = a//2 + print(f'2zł - {b_2}') + a = a - b_2*2 + if a%1 == 0: + b_1 = a//1 + print(f'1zł - {b_1}') + elif a%2 == 0: + b_2 = a//2 + print(f'2zł - {b_2}') + print(f'1zł - {b_1}') +elif a%5 == 0: + b_5 = a//5 + print(f'5zł - {b_5}') + print(f'2zł - {b_2}') + print(f'1zł - {b_1}') diff --git a/03-ControlStructures/zadanie35.py b/03-ControlStructures/zadanie35.py new file mode 100644 index 000000000..b5bf4022c --- /dev/null +++ b/03-ControlStructures/zadanie35.py @@ -0,0 +1,12 @@ +array = [] +for a in range(1, 31): + if a%3 == 0 and a%15 != 0: + b = 'THREE' + elif a%5 == 0 and a%15 != 0: + b = 'FIVE' + elif a%15 == 0: + b = 'BINGO' + else: + b = a + array.append(b) +print(*array, sep=", ") \ No newline at end of file diff --git a/03-ControlStructures/zadanie36.py b/03-ControlStructures/zadanie36.py new file mode 100644 index 000000000..6bd3e4485 --- /dev/null +++ b/03-ControlStructures/zadanie36.py @@ -0,0 +1,5 @@ +i = int(input('Enter number: ')) +a = 1 +while a<=10: + print (f'{i} x {a} = {i*a}') + a = a+1 \ No newline at end of file diff --git a/03-ControlStructures/zadanie37.py b/03-ControlStructures/zadanie37.py new file mode 100644 index 000000000..2be16813a --- /dev/null +++ b/03-ControlStructures/zadanie37.py @@ -0,0 +1,15 @@ +a = 1 +array = [] +while a <=5: + b = '*' + array.append(b) + print(*array, sep=" ") + b = b +'*' + a = a+1 + +while a > 5 and a <= 9: + c = '*' + array.remove(c) + print(*array, sep=" ") + c = c + '*' + a = a+1 diff --git a/03-ControlStructures/zadanie38.py b/03-ControlStructures/zadanie38.py new file mode 100644 index 000000000..39043cdd1 --- /dev/null +++ b/03-ControlStructures/zadanie38.py @@ -0,0 +1,2 @@ +for a in range (1,10): + print(str(a)*a) diff --git a/03-ControlStructures/zadanie39.py b/03-ControlStructures/zadanie39.py new file mode 100644 index 000000000..5a0a84111 --- /dev/null +++ b/03-ControlStructures/zadanie39.py @@ -0,0 +1,13 @@ +a = int(input('Enter longer side of a rectangle: ')) +b = int(input('Enter shorter side of a rectangle: ')) +c = '*' +d = 1 + +while d < b: + while (d == 1 or d == b): + print (a*c) + d = d+1 + while d > 1 and d < b: + print (f'{c}{(a-2)*' '}{c}') + d = d + 1 + diff --git a/03-ControlStructures/zadanie40.py b/03-ControlStructures/zadanie40.py new file mode 100644 index 000000000..517c73ca7 --- /dev/null +++ b/03-ControlStructures/zadanie40.py @@ -0,0 +1,2 @@ +a = str(input('Enter the name of your university: ')) +print(" ".join(a)) \ No newline at end of file diff --git a/03-ControlStructures/zadanie41.py b/03-ControlStructures/zadanie41.py new file mode 100644 index 000000000..b75213846 --- /dev/null +++ b/03-ControlStructures/zadanie41.py @@ -0,0 +1,12 @@ +b = 1 +while b <= 3: + a = str(input('Enter the PIN code: ')) + if a != '0805': + print('Incorrect...') + b = b + 1 + if a == '0805': + print('Correct PIN') + break + if b==4: + print('Sorry, your payment card has been blocked.') + diff --git a/03-ControlStructures/zadanie42.py b/03-ControlStructures/zadanie42.py new file mode 100644 index 000000000..4448e4a00 --- /dev/null +++ b/03-ControlStructures/zadanie42.py @@ -0,0 +1,9 @@ +i = 6 +j = 1 +while i>= 0 and i<=6: + while j>=1 and j<4: + print(f'{i+j}',end=' ') + j = j+1 + i = i-3 + j = 1 + print() \ No newline at end of file diff --git a/03-ControlStructures/zadanie43.py b/03-ControlStructures/zadanie43.py new file mode 100644 index 000000000..c03c42be0 --- /dev/null +++ b/03-ControlStructures/zadanie43.py @@ -0,0 +1,7 @@ +i = 0 +array=[0, 1] +for i in range (2, 20): + next_number = array[-1] + array[-2] + array.append(next_number) + +print(*array, sep = " ") diff --git a/03-ControlStructures/zadanie44.py b/03-ControlStructures/zadanie44.py new file mode 100644 index 000000000..d3b8c4df6 --- /dev/null +++ b/03-ControlStructures/zadanie44.py @@ -0,0 +1,9 @@ +i = 1 +array = [] +while i > 0: + a = int(input('Enter number (enter 0 if you want to stop): ')) + array.append(a) + if a == 0: + break + i = i + 1 +print(f'RESULT: Quantity = {i-1}, Sum = {sum(array)}, Mean = {sum(array)/(i-1)}') \ No newline at end of file diff --git a/03-ControlStructures/zadanie45.py b/03-ControlStructures/zadanie45.py new file mode 100644 index 000000000..94d1b60e9 --- /dev/null +++ b/03-ControlStructures/zadanie45.py @@ -0,0 +1,14 @@ +a = int(input('Enter quanity of prime numbers: ')) +i = 1 +b = 2 +array = [] +while i>0: + if b == 2 or b == 3 or b == 5 or b ==7: + array.append(b) + elif b%2 != 0 and b%3 != 0 and b%7 != 0 and b%5 != 0: + array.append(b) + b = b+1 + i = i+1 + if len(array) == a: + break +print(*array) diff --git a/03-ControlStructures/zadanie46.py b/03-ControlStructures/zadanie46.py new file mode 100644 index 000000000..e1da13231 --- /dev/null +++ b/03-ControlStructures/zadanie46.py @@ -0,0 +1,4 @@ +for i in range(1,8): + for j in range(0,44, 7): + print(f'{i+j}',end=' ') + print() \ No newline at end of file diff --git a/03-ControlStructures/zadanie47.py b/03-ControlStructures/zadanie47.py new file mode 100644 index 000000000..e19381b83 --- /dev/null +++ b/03-ControlStructures/zadanie47.py @@ -0,0 +1,3 @@ +import random +for i in range (20): + print(random.randint(5,10),end=" ") \ No newline at end of file diff --git a/03-ControlStructures/zadanie9.py b/03-ControlStructures/zadanie9.py new file mode 100644 index 000000000..6f92b20c8 --- /dev/null +++ b/03-ControlStructures/zadanie9.py @@ -0,0 +1,6 @@ +total_points = 30 +result = 12 +if result >= total_points*0.5 : + print('Test passed') +else: + print('Test failed') \ No newline at end of file diff --git a/04-Subroutines/amount_to_pay.py b/04-Subroutines/amount_to_pay.py new file mode 100644 index 000000000..63815c7ed --- /dev/null +++ b/04-Subroutines/amount_to_pay.py @@ -0,0 +1,13 @@ +def f(amount_to_pay): + coins_5_pln = 0 + coins_2_pln = 0 + coins_1_pln = 0 + while amount_to_pay >= 5: + amount_to_pay -= 5 + coins_5_pln += 1 + while amount_to_pay >= 2: + amount_to_pay -= 2 + coins_2_pln += 1 + coins_1_pln = amount_to_pay + total_coins = coins_5_pln + coins_2_pln + coins_1_pln + return total_coins \ No newline at end of file diff --git a/04-Subroutines/binary.py b/04-Subroutines/binary.py new file mode 100644 index 000000000..d1ddb0b33 --- /dev/null +++ b/04-Subroutines/binary.py @@ -0,0 +1,5 @@ +def f (binary_number): + for digit in binary_number: + if digit not in '01': + return False + return True diff --git a/04-Subroutines/checking.py b/04-Subroutines/checking.py new file mode 100644 index 000000000..1a14b6e78 --- /dev/null +++ b/04-Subroutines/checking.py @@ -0,0 +1,5 @@ +def check(i, x, y): + if i in range(x, y+1): + return True + else: + return False \ No newline at end of file diff --git a/04-Subroutines/converters.py b/04-Subroutines/converters.py new file mode 100644 index 000000000..6e23d8894 --- /dev/null +++ b/04-Subroutines/converters.py @@ -0,0 +1,10 @@ +def m_to_cm(n): + return n*100 + +def cm_to_m(n): + return n/100 + +if __name__ == "__main__": + # only execute when you run this module + print(f'2m = {m_to_cm(2)}cm') + print(f'532cm = {cm_to_m(532)}m') \ No newline at end of file diff --git a/04-Subroutines/counting.py b/04-Subroutines/counting.py new file mode 100644 index 000000000..9b6a28748 --- /dev/null +++ b/04-Subroutines/counting.py @@ -0,0 +1,2 @@ +def count_letters(text, letter): + return text.lower().count(letter.lower()) \ No newline at end of file diff --git a/04-Subroutines/credit_card.py b/04-Subroutines/credit_card.py new file mode 100644 index 000000000..1d965df7a --- /dev/null +++ b/04-Subroutines/credit_card.py @@ -0,0 +1,2 @@ +def f(card_number): + return card_number[0:2] + 10*'*' + card_number[12:16] \ No newline at end of file diff --git a/04-Subroutines/even_number_sum.py b/04-Subroutines/even_number_sum.py new file mode 100644 index 000000000..79001f2fa --- /dev/null +++ b/04-Subroutines/even_number_sum.py @@ -0,0 +1,16 @@ +def f(number, even): + i = 0 + sum = 0 + number = str(number) + if even == 'True': + while i < len(str(number)): + if int(number[i])%2 == 0: + sum += int(number[i]) + i+=1 + elif even == 'False': + while i < len(str(number)): + if int(number[i])%2 != 0: + sum += int(number[i]) + i+=1 + return sum + \ No newline at end of file diff --git a/04-Subroutines/months.py b/04-Subroutines/months.py new file mode 100644 index 000000000..b0d5b2cf9 --- /dev/null +++ b/04-Subroutines/months.py @@ -0,0 +1,6 @@ +def month(n): + months =[ + "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", + "November", "December", + ] + return months[n-1] diff --git a/04-Subroutines/mykeyboard.py b/04-Subroutines/mykeyboard.py new file mode 100644 index 000000000..d52306f18 --- /dev/null +++ b/04-Subroutines/mykeyboard.py @@ -0,0 +1,14 @@ +def read_number(): + try: + number = int(input("Enter a number: ")) + return number + except ValueError: + print("Invalid input. Please enter a valid integer.") + return read_number() + +if __name__ == "__main__": + num1 = read_number() + num2 = read_number() + + total = num1 + num2 + print("The sum of the two entered numbers is:", total) diff --git a/04-Subroutines/mymath.py b/04-Subroutines/mymath.py new file mode 100644 index 000000000..7ac4e3fee --- /dev/null +++ b/04-Subroutines/mymath.py @@ -0,0 +1,4 @@ +import random +def generate_number(): + return random.randint(1,9) +generate_number() \ No newline at end of file diff --git a/04-Subroutines/myprogram.py b/04-Subroutines/myprogram.py new file mode 100644 index 000000000..a3a84bd72 --- /dev/null +++ b/04-Subroutines/myprogram.py @@ -0,0 +1,3 @@ +import converters +print('## Test converters') +print(f'Three meters is {converters.m_to_cm(3)}cm') \ No newline at end of file diff --git a/04-Subroutines/number_of_neg_even.py b/04-Subroutines/number_of_neg_even.py new file mode 100644 index 000000000..32ee5114b --- /dev/null +++ b/04-Subroutines/number_of_neg_even.py @@ -0,0 +1,6 @@ +def f(x, y): + sum = 0 + for i in range(x, y+1): + if i<0 and i%2 ==0: + sum += 1 + return sum \ No newline at end of file diff --git a/04-Subroutines/sum_in_range.py b/04-Subroutines/sum_in_range.py new file mode 100644 index 000000000..072aad758 --- /dev/null +++ b/04-Subroutines/sum_in_range.py @@ -0,0 +1,5 @@ +def f(n): + sum = 0 + for i in range(1,n+1): + sum += i + return sum \ No newline at end of file diff --git a/04-Subroutines/test.py b/04-Subroutines/test.py new file mode 100644 index 000000000..052ef7129 --- /dev/null +++ b/04-Subroutines/test.py @@ -0,0 +1,20 @@ +dice = "1114444111" +if dice == "": + print (None) + +max_roll = None +max_count = 1 +current_roll = dice[0] +current_count = 1 + +for i in range(1, len(dice)): + if dice[i] == current_roll: + current_count += 1 + if current_count > max_count: + max_count = current_count + max_roll = current_roll + else: + current_roll = dice[i] + current_count = 1 + +print (max_roll) diff --git a/04-Subroutines/zadanie1.py b/04-Subroutines/zadanie1.py new file mode 100644 index 000000000..da2d2249d --- /dev/null +++ b/04-Subroutines/zadanie1.py @@ -0,0 +1,8 @@ +print(len('computer science')) +a = str(input('Enter letter: ')) +print(a) +b = 5068 +print(str(b)) +print(int('20303')) +numbers = [4,7,2,3,9,8] +print(min(numbers)) \ No newline at end of file diff --git a/04-Subroutines/zadanie12.py b/04-Subroutines/zadanie12.py new file mode 100644 index 000000000..4625fc6c0 --- /dev/null +++ b/04-Subroutines/zadanie12.py @@ -0,0 +1,13 @@ +max_number = (7,5,6,3,8,2) +print(f'Max number of 7, 5, 6, 3, 8, 2 is: {max(max_number)}') + +a=str(bin(304)) +print(a) +print(type(a)) +b = str(hex(304)) +print(b) +print(type(b)) +c = int(ord('€')) +print(c) +print(type(c)) +print(abs(-17)) \ No newline at end of file diff --git a/04-Subroutines/zadanie13.py b/04-Subroutines/zadanie13.py new file mode 100644 index 000000000..402ae71c8 --- /dev/null +++ b/04-Subroutines/zadanie13.py @@ -0,0 +1,5 @@ +import math +print(math.log(5)) +print(math.exp(3)) +print(math.sqrt(7)) +print(math.sin(math.radians(90))) \ No newline at end of file diff --git a/04-Subroutines/zadanie17.py b/04-Subroutines/zadanie17.py new file mode 100644 index 000000000..1064d77a6 --- /dev/null +++ b/04-Subroutines/zadanie17.py @@ -0,0 +1,11 @@ +n1 = int(input('Enter first number: ')) +n2 = int(input('Enter second number: ')) +n3 = int(input('Enter third number: ')) +def different(n1, n2, n3): + if n1 != n2 and n2 != n3 and n1 != n3: + return True +if different(n1, n2, n3) == True: + print(f'Numbers {n1}, {n2}, and {n3} are different') +else: + print(f"Numbers {n1}, {n2}, and {n3} aren't different") + diff --git a/04-Subroutines/zadanie18.py b/04-Subroutines/zadanie18.py new file mode 100644 index 000000000..259a09951 --- /dev/null +++ b/04-Subroutines/zadanie18.py @@ -0,0 +1,8 @@ +def numbers(n): + s = "" + for i in range (1, n+1): + s += str(i) + " " + return s + +x = 15 +print(f'Numbers <1,{x}>: {numbers(x)}') diff --git a/04-Subroutines/zadanie21.py b/04-Subroutines/zadanie21.py new file mode 100644 index 000000000..b99c4459a --- /dev/null +++ b/04-Subroutines/zadanie21.py @@ -0,0 +1,10 @@ +import mymath +import mykeyboard +x = mykeyboard.read_number() +y = mymath.generate_number() +print(f'Computer number: {y}') +if x == y: + print('You won the game!!') +else: + print('You lost :(') + diff --git a/04-Subroutines/zadanie22.py b/04-Subroutines/zadanie22.py new file mode 100644 index 000000000..7e57552e2 --- /dev/null +++ b/04-Subroutines/zadanie22.py @@ -0,0 +1,3 @@ +import months +a = int(input('Enter month number: ')) +print(f'The name of month {a} is {months.month(a)}') \ No newline at end of file diff --git a/04-Subroutines/zadanie23.py b/04-Subroutines/zadanie23.py new file mode 100644 index 000000000..6439130b4 --- /dev/null +++ b/04-Subroutines/zadanie23.py @@ -0,0 +1,5 @@ +import counting +text_count = str(input('Enter text: ')) +letter_to_count = str(input('Enter a letter to count: ')) +count = counting.count_letters(text_count, letter_to_count) +print(f"The number of letter '{letter_to_count}': {count}") \ No newline at end of file diff --git a/04-Subroutines/zadanie24.py b/04-Subroutines/zadanie24.py new file mode 100644 index 000000000..a4eb95ead --- /dev/null +++ b/04-Subroutines/zadanie24.py @@ -0,0 +1,8 @@ +import checking +a = int(input('A number: ')) +b = int(input('Enter lower bound of range: ')) +c = int(input('Enter upper bound of range: ')) +if checking.check(a, b, c): + print(f'Number {a} in the range <{b},{c}>: yes') +else: + print(f'Number {a} in the range <{b},{c}>: no') \ No newline at end of file diff --git a/04-Subroutines/zadanie25.py b/04-Subroutines/zadanie25.py new file mode 100644 index 000000000..eddc1a196 --- /dev/null +++ b/04-Subroutines/zadanie25.py @@ -0,0 +1,10 @@ +greater_than = lambda x, y: True if x > y else False + +pair1 = (34, 25) +pair2 = (19, 23) + +result1 = greater_than(pair1[0], pair1[1]) +result2 = greater_than(pair2[0], pair2[1]) + +print(f"For pair {pair1}, the result is: {result1}") +print(f"For pair {pair2}, the result is: {result2}") \ No newline at end of file diff --git a/04-Subroutines/zadanie26.py b/04-Subroutines/zadanie26.py new file mode 100644 index 000000000..882b5f92f --- /dev/null +++ b/04-Subroutines/zadanie26.py @@ -0,0 +1,4 @@ +even = lambda x: True if x%2 == 0 else False +a = int(input('Enater a number: ')) +result = even(a) +print(f'Number {a} is even: {result}') \ No newline at end of file diff --git a/04-Subroutines/zadanie27.py b/04-Subroutines/zadanie27.py new file mode 100644 index 000000000..631a9b0c6 --- /dev/null +++ b/04-Subroutines/zadanie27.py @@ -0,0 +1,6 @@ +import credit_card +a = str(input('Enter card number: ')) +if len(a) == 16: + print(f'Masked card number: {credit_card.f(a)}') +else: + print('Invalid card number!') \ No newline at end of file diff --git a/04-Subroutines/zadanie28.py b/04-Subroutines/zadanie28.py new file mode 100644 index 000000000..cc281928b --- /dev/null +++ b/04-Subroutines/zadanie28.py @@ -0,0 +1,3 @@ +import binary +a = str(input('Enert number: ')) +print(f'The number {a} is a binary number: {binary.f(a)}') \ No newline at end of file diff --git a/04-Subroutines/zadanie29.py b/04-Subroutines/zadanie29.py new file mode 100644 index 000000000..69bdca6a5 --- /dev/null +++ b/04-Subroutines/zadanie29.py @@ -0,0 +1,4 @@ +import amount_to_pay +a = int(input('Enter amount to pay: ')) +result = amount_to_pay.f(a) +print(f"The minimum number of coins needed to pay {a} PLN is: {result}") diff --git a/04-Subroutines/zadanie3.py b/04-Subroutines/zadanie3.py new file mode 100644 index 000000000..402ae71c8 --- /dev/null +++ b/04-Subroutines/zadanie3.py @@ -0,0 +1,5 @@ +import math +print(math.log(5)) +print(math.exp(3)) +print(math.sqrt(7)) +print(math.sin(math.radians(90))) \ No newline at end of file diff --git a/04-Subroutines/zadanie30.py b/04-Subroutines/zadanie30.py new file mode 100644 index 000000000..1a6f0f2f2 --- /dev/null +++ b/04-Subroutines/zadanie30.py @@ -0,0 +1,4 @@ +import even_number_sum +a = int(input('Enter a number: ')) +b = str(input("A sum of even digits - enter 'True', a sum of odd numbers - enter 'False': ")) +print(f'A sum of chosen numbers = {even_number_sum.f(a, b)}') \ No newline at end of file diff --git a/04-Subroutines/zadanie31.py b/04-Subroutines/zadanie31.py new file mode 100644 index 000000000..d7cea0e2e --- /dev/null +++ b/04-Subroutines/zadanie31.py @@ -0,0 +1,4 @@ +import number_of_neg_even +a = int(input('Enter lower bound of range: ')) +b = int(input('Enter upper bound of range: ')) +print(f'There are {number_of_neg_even.f(a, b)} negative even numbers in range <{a}, {b}>') \ No newline at end of file diff --git a/04-Subroutines/zadanie32.py b/04-Subroutines/zadanie32.py new file mode 100644 index 000000000..c7b627843 --- /dev/null +++ b/04-Subroutines/zadanie32.py @@ -0,0 +1,8 @@ +def f(n1, n2, n3): + if n1 < 0 or n2 < 0 or n3 < 0: + return True + else: + return False +if __name__ == "__main__": + print(f(11,6,-4)) + print(f(15,4,14)) \ No newline at end of file diff --git a/04-Subroutines/zadanie33.py b/04-Subroutines/zadanie33.py new file mode 100644 index 000000000..9d8d89450 --- /dev/null +++ b/04-Subroutines/zadanie33.py @@ -0,0 +1,8 @@ +def f(a): + array=[] + for i in range (a): + array.append('*') + return print(*array, sep='/') +if __name__ == '__main__': + f(4) + f(1) \ No newline at end of file diff --git a/04-Subroutines/zadanie34.py b/04-Subroutines/zadanie34.py new file mode 100644 index 000000000..4c641be6e --- /dev/null +++ b/04-Subroutines/zadanie34.py @@ -0,0 +1,9 @@ +def f(n): + s='' + for i in range(1, n+1): + s += str(i) + print(s) + +if __name__ == '__main__': + f(11) + f(4) diff --git a/04-Subroutines/zadanie35.py b/04-Subroutines/zadanie35.py new file mode 100644 index 000000000..1deee930e --- /dev/null +++ b/04-Subroutines/zadanie35.py @@ -0,0 +1,18 @@ +def f(n1,n2,operator): + if operator == '+': + return n1+n2 + elif operator == '%': + return n1%n2 + elif operator == '**': + return n1**n2 + elif operator == '*': + return n1*n2 + elif operator == '-': + return n1-n2 + +if __name__ == '__main__': + print(f(2,3,'+')) + print(f(2,3,'%')) + print(f(2,3,'**')) + print(f(2,3,'*')) + print(f(2,3,'-')) \ No newline at end of file diff --git a/04-Subroutines/zadanie36.py b/04-Subroutines/zadanie36.py new file mode 100644 index 000000000..058391fdd --- /dev/null +++ b/04-Subroutines/zadanie36.py @@ -0,0 +1,17 @@ +def f(detector): + number_of_people = 0 + for i in detector: + if i == "+": + number_of_people +=1 + if i == "-": + number_of_people -=1 + if number_of_people == 3: + return True + break + if number_of_people != 3: + return False +if __name__ =='__main__': + print(f('+-+++-+---')) + print(f('+-+-+-+-')) + print(f('+-++-+--')) + print(f('+-++-++-+---')) \ No newline at end of file diff --git a/04-Subroutines/zadanie37.py b/04-Subroutines/zadanie37.py new file mode 100644 index 000000000..7f98499fc --- /dev/null +++ b/04-Subroutines/zadanie37.py @@ -0,0 +1,13 @@ +def f(n): + array = [] + if n == 1: + array.append(0) + if n >= 2: + array = [0,1] + for i in range (n): + array.append(array[i]+array[i+1]) + return array[n-1] + +if __name__ == '__main__': + print(f(5)) + print(f(9)) \ No newline at end of file diff --git a/04-Subroutines/zadanie38.py b/04-Subroutines/zadanie38.py new file mode 100644 index 000000000..5af524679 --- /dev/null +++ b/04-Subroutines/zadanie38.py @@ -0,0 +1,15 @@ +def f(palindrome): + a = 1 + palindrome = palindrome.replace(" ","").lower() + for i in palindrome: + if i == palindrome[-a]: + a+=1 + else: + return False + break + return True + +if __name__ == '__main__': + print(f('kajak')) + print(f('12-11-21')) + print(f('book')) diff --git a/04-Subroutines/zadanie39.py b/04-Subroutines/zadanie39.py new file mode 100644 index 000000000..80640538e --- /dev/null +++ b/04-Subroutines/zadanie39.py @@ -0,0 +1,6 @@ +def f(sentence): + return sentence.replace(" ","") + +if __name__ == '__main__': + print(f('integrated development environment')) + print(f('A programming language is a system of notation for writing computer programs')) \ No newline at end of file diff --git a/04-Subroutines/zadanie40.py b/04-Subroutines/zadanie40.py new file mode 100644 index 000000000..8e82db138 --- /dev/null +++ b/04-Subroutines/zadanie40.py @@ -0,0 +1,17 @@ +def f(number): + number = str(number) + sum = 0 + digit_count = {} + for i in number: + if i in digit_count: + digit_count[i] += 1 + else: + digit_count[i] = 1 + for i, count in digit_count.items(): + if count > 1: + sum += int(i)*count + return sum +if __name__ == '__main__': + print(f(1027)) + print(f(230335)) + print(f(513553007)) \ No newline at end of file diff --git a/04-Subroutines/zadanie41.py b/04-Subroutines/zadanie41.py new file mode 100644 index 000000000..40edd52e5 --- /dev/null +++ b/04-Subroutines/zadanie41.py @@ -0,0 +1,19 @@ +def f(n): + i = 1 + b = 2 + array = [] + while i>0: + if b == 2 or b == 3 or b == 5 or b == 7: + array.append(b) + elif b%2 != 0 and b%3 != 0 and b%5 != 0 and b%7 != 0: + array.append(b) + b = b+1 + i = i+1 + if len(array) == n: + break + return array[n-1] + + +if __name__ == '__main__': + print(f(1)) + print(f(5)) diff --git a/04-Subroutines/zadanie42.py b/04-Subroutines/zadanie42.py new file mode 100644 index 000000000..ed8dde0b1 --- /dev/null +++ b/04-Subroutines/zadanie42.py @@ -0,0 +1,7 @@ +def f(n1, n2, n3): + array = [n1,n2,n3] + return max(array) - min(array) + +if __name__ == '__main__': + print(f(7,4,9)) + print(f(2, 12, 8)) \ No newline at end of file diff --git a/04-Subroutines/zadanie43.py b/04-Subroutines/zadanie43.py new file mode 100644 index 000000000..b286dc6d4 --- /dev/null +++ b/04-Subroutines/zadanie43.py @@ -0,0 +1,8 @@ +def f(name): + words = name.split() + return ''.join(word[0] for word in words) + +if __name__ == '__main__': + print(f('Internet of Things')) + print(f('For Your Information')) + print(f('Python')) \ No newline at end of file diff --git a/04-Subroutines/zadanie44.py b/04-Subroutines/zadanie44.py new file mode 100644 index 000000000..320d858ec --- /dev/null +++ b/04-Subroutines/zadanie44.py @@ -0,0 +1,22 @@ +def f(password): + sum = 0 + character_count = {} + for i in password: + if i in character_count: + character_count[i]+=1 + else: + character_count[i] = 1 + for i, count in character_count.items(): + if count ==1: + sum +=1 + if sum < 6: + return False + else: + return True + +if __name__ =='__main__': + print(f('ax15')) + print(f('book123')) + print(f('A2water3')) + print(f('qwerty')) + print(f('ghjklopg')) \ No newline at end of file diff --git a/04-Subroutines/zadanie45.py b/04-Subroutines/zadanie45.py new file mode 100644 index 000000000..c73fd00ac --- /dev/null +++ b/04-Subroutines/zadanie45.py @@ -0,0 +1,16 @@ +def f(experession): + experession = str(experession) + a = 0 + result = int(experession[0]) + for i in experession: + if i == '+': + result += int(experession[a+1]) + if i == '-': + result -= int(experession[a+1]) + a +=1 + return result + +if __name__== '__main__': + print(f('2+3')) + print(f('3+8+1')) + print(f('2+3-4+5-0')) diff --git a/04-Subroutines/zadanie46.py b/04-Subroutines/zadanie46.py new file mode 100644 index 000000000..0cc658169 --- /dev/null +++ b/04-Subroutines/zadanie46.py @@ -0,0 +1,11 @@ +def f(x, y): + sum = 0 + for i in range (x, y+1): + if i%2 == 0 and i%3 == 0 and i%4 !=0: + sum += i + return sum + +if __name__ == '__main__': + print(f(1,20)) + print(f(10,30)) + \ No newline at end of file diff --git a/04-Subroutines/zadanie47.py b/04-Subroutines/zadanie47.py new file mode 100644 index 000000000..97675e8a0 --- /dev/null +++ b/04-Subroutines/zadanie47.py @@ -0,0 +1,6 @@ +def f(text): + return '-'.join(text) + +if __name__ =='__main__': + print(f('University')) + print(f('UE')) \ No newline at end of file diff --git a/04-Subroutines/zadanie48.py b/04-Subroutines/zadanie48.py new file mode 100644 index 000000000..26beff908 --- /dev/null +++ b/04-Subroutines/zadanie48.py @@ -0,0 +1,11 @@ +def f(product_code): + if int(product_code[-1]) == (int(product_code[0])+int(product_code[1])+int(product_code[2]))%7: + return True + else: + return False + +if __name__ == '__main__': + print(f('1082')) + print(f('2035')) + print(f('1114')) + print(f('7071')) \ No newline at end of file diff --git a/04-Subroutines/zadanie49.py b/04-Subroutines/zadanie49.py new file mode 100644 index 000000000..6d9da9326 --- /dev/null +++ b/04-Subroutines/zadanie49.py @@ -0,0 +1,14 @@ +def f(dice): + count_dice = {} + for i in dice: + if i in count_dice: + count_dice[i]+=1 + else: + count_dice[i] = 1 + for i, count in count_dice.items(): + if count == max(count_dice.values()): + return i + +if __name__ == '__main__': + print(f('5233165554211')) + print(f('2133')) \ No newline at end of file diff --git a/04-Subroutines/zadanie49dobrze.py b/04-Subroutines/zadanie49dobrze.py new file mode 100644 index 000000000..61300f316 --- /dev/null +++ b/04-Subroutines/zadanie49dobrze.py @@ -0,0 +1,26 @@ +def f(dice): + if dice == "": + return None + + max_roll = None + max_count = 1 + current_roll = dice[0] + current_count = 1 + + for i in range(1, len(dice)): + if dice[i] == current_roll: + current_count += 1 + if current_count > max_count: + max_count = current_count + max_roll = current_roll + else: + current_roll = dice[i] + current_count = 1 + + return max_roll + +if __name__ == "__main__": + print(f('"5233165554211"')) + print(f('2133')) + print(f("111144444111")) + print(f('21')) \ No newline at end of file diff --git a/04-Subroutines/zadanie50.py b/04-Subroutines/zadanie50.py new file mode 100644 index 000000000..14c092e69 --- /dev/null +++ b/04-Subroutines/zadanie50.py @@ -0,0 +1,8 @@ +def factorial(n): + if n==0 or n==1: + return 1 + if n > 1: + return n * factorial(n-1) + +if __name__ == '__main__': + print(factorial(5)) \ No newline at end of file diff --git a/04-Subroutines/zadanie51.py b/04-Subroutines/zadanie51.py new file mode 100644 index 000000000..831d263a9 --- /dev/null +++ b/04-Subroutines/zadanie51.py @@ -0,0 +1,3 @@ +import sum_in_range +a = int(input('Enter upper bound of range: ')) +print(sum_in_range.f(a)) \ No newline at end of file diff --git a/04-Subroutines/zadanie52.py b/04-Subroutines/zadanie52.py new file mode 100644 index 000000000..7fc33d380 --- /dev/null +++ b/04-Subroutines/zadanie52.py @@ -0,0 +1,8 @@ +def f(x, n): + if n == 0: + return 1 + else: + return x**n + +if __name__ == '__main__': + print(f(5,3)) \ No newline at end of file diff --git a/05-Test1/mock/p3.py b/05-Test1/mock/p3.py new file mode 100644 index 000000000..b286dc6d4 --- /dev/null +++ b/05-Test1/mock/p3.py @@ -0,0 +1,8 @@ +def f(name): + words = name.split() + return ''.join(word[0] for word in words) + +if __name__ == '__main__': + print(f('Internet of Things')) + print(f('For Your Information')) + print(f('Python')) \ No newline at end of file diff --git a/05-Test1/mock/p4.py b/05-Test1/mock/p4.py new file mode 100644 index 000000000..f9e012d2a --- /dev/null +++ b/05-Test1/mock/p4.py @@ -0,0 +1,6 @@ +def f(card_number): + card_number = str(card_number) + return card_number[0:2] + 10*'*'+ card_number[12:16] + +if __name__ == '__main__': + print(f(5290312400019022)) \ No newline at end of file diff --git a/05-Test1/mock/p5.py b/05-Test1/mock/p5.py new file mode 100644 index 000000000..a1fb6faa5 --- /dev/null +++ b/05-Test1/mock/p5.py @@ -0,0 +1,10 @@ +def f (binary_number): + binary_number = str(binary_number) + for i in binary_number: + if i not in '01': + return False + return True + +if __name__ == '__main__': + print(f('101101')) + print(f('1311a10100')) \ No newline at end of file diff --git a/05-Test1/mock/p6.py b/05-Test1/mock/p6.py new file mode 100644 index 000000000..90a5138df --- /dev/null +++ b/05-Test1/mock/p6.py @@ -0,0 +1,19 @@ +def f(number, even): + number = str(number) + sum = 0 + for i in number: + i = int(i) + if even == True: + if i%2 ==0: + sum += i + elif even == False: + if i%2 != 0: + sum += i + return sum + +if __name__ == '__main__': + print(f(3124, True)) + print(f(3124, False)) + print(f(20576, True)) + print(f(20576, False)) + print(f(13115, True)) \ No newline at end of file diff --git a/06-Arrays/zadanie19.py b/06-Arrays/zadanie19.py new file mode 100644 index 000000000..31aa9e2e0 --- /dev/null +++ b/06-Arrays/zadanie19.py @@ -0,0 +1,29 @@ +import random +arr1 = [3,7,1,0,4] +arr2 = [[2,3],[7,1],[0,4]] +arr3 = [7 for i in range(5)] +arr4 = [i for i in range(1,10)] +arr5 = [i*2 for i in range(1,10)] +arr6 = [random.randint(1,20) for i in range(10)] +arr7 = [[] for i in range(5)] +arr8 = [[1 for i in range(2)] for j in range(4)] +arr9 = [[random.randint(1,20) for i in range(3)] for j in range(5)] +arr10 = [4, 0, 7] +arr11 = [0 for i in range(50)] +arr12 = [i for i in range(1,31)] +arr13 = [random.randint(0,1) for i in range(20)] +arr14 = [[False for i in range(2)] for j in range(5)] +print(arr1) +print(arr2) +print(arr3) +print(arr4) +print(arr5) +print(arr6) +print(arr7) +print(arr8) +print(arr9) +print(arr10) +print(arr11) +print(arr12) +print(arr13) +print(arr14) \ No newline at end of file From c30ec5ee4c3cfcbbfd7d76e0213c5ec12633022f Mon Sep 17 00:00:00 2001 From: GabrielaSocha <232490@student.uek.krakow.pl> Date: Tue, 21 Nov 2023 00:33:39 +0100 Subject: [PATCH 2/9] After class --- .../__pycache__/amount_to_pay.cpython-312.pyc | Bin 0 -> 577 bytes .../__pycache__/binary.cpython-312.pyc | Bin 0 -> 326 bytes .../__pycache__/checking.cpython-312.pyc | Bin 0 -> 328 bytes .../__pycache__/converters.cpython-312.pyc | Bin 0 -> 585 bytes .../__pycache__/counting.cpython-312.pyc | Bin 0 -> 397 bytes .../__pycache__/credit_card.cpython-312.pyc | Bin 0 -> 346 bytes .../even_number_sum.cpython-312.pyc | Bin 0 -> 943 bytes .../__pycache__/months.cpython-312.pyc | Bin 0 -> 406 bytes .../__pycache__/mykeyboard.cpython-312.pyc | Bin 0 -> 746 bytes .../__pycache__/mymath.cpython-312.pyc | Bin 0 -> 380 bytes .../number_of_neg_even.cpython-312.pyc | Bin 0 -> 427 bytes .../__pycache__/sum_in_range.cpython-312.pyc | Bin 0 -> 373 bytes 06-Arrays/MyArrays.py | 25 +++++++++++++ 06-Arrays/MyText.py | 17 +++++++++ .../__pycache__/MyArrays.cpython-312.pyc | Bin 0 -> 1709 bytes 06-Arrays/__pycache__/MyText.cpython-312.pyc | Bin 0 -> 1254 bytes 06-Arrays/__pycache__/convert.cpython-312.pyc | Bin 0 -> 388 bytes .../__pycache__/zadanie54.cpython-312.pyc | Bin 0 -> 378 bytes 06-Arrays/convert.py | 6 ++++ 06-Arrays/test.py | 8 +++++ 06-Arrays/zadanie10.py | 8 +++++ 06-Arrays/zadanie11.py | 6 ++++ 06-Arrays/zadanie12.py | 6 ++++ 06-Arrays/zadanie13.py | 5 +++ 06-Arrays/zadanie14.py | 6 ++++ 06-Arrays/zadanie15.py | 4 +++ 06-Arrays/zadanie16.py | 7 ++++ 06-Arrays/zadanie17.py | 4 +++ 06-Arrays/zadanie18.py | 6 ++++ 06-Arrays/zadanie20.py | 8 +++++ 06-Arrays/zadanie21.py | 6 ++++ 06-Arrays/zadanie22.py | 5 +++ 06-Arrays/zadanie23.py | 11 ++++++ 06-Arrays/zadanie24.py | 5 +++ 06-Arrays/zadanie25.py | 7 ++++ 06-Arrays/zadanie26.py | 9 +++++ 06-Arrays/zadanie27.py | 3 ++ 06-Arrays/zadanie28.py | 14 ++++++++ 06-Arrays/zadanie29.py | 7 ++++ 06-Arrays/zadanie30.py | 12 +++++++ 06-Arrays/zadanie31.py | 13 +++++++ 06-Arrays/zadanie32.py | 10 ++++++ 06-Arrays/zadanie33.py | 2 ++ 06-Arrays/zadanie34.py | 3 ++ 06-Arrays/zadanie35.py | 3 ++ 06-Arrays/zadanie36.py | 10 ++++++ 06-Arrays/zadanie37.py | 7 ++++ 06-Arrays/zadanie38.py | 12 +++++++ 06-Arrays/zadanie39.py | 6 ++++ 06-Arrays/zadanie40.py | 12 +++++++ 06-Arrays/zadanie41.py | 8 +++++ 06-Arrays/zadanie42.py | 6 ++++ 06-Arrays/zadanie43.py | 6 ++++ 06-Arrays/zadanie44.py | 12 +++++++ 06-Arrays/zadanie45.py | 10 ++++++ 06-Arrays/zadanie46.py | 5 +++ 06-Arrays/zadanie47.py | 5 +++ 06-Arrays/zadanie48.py | 3 ++ 06-Arrays/zadanie49.py | 9 +++++ 06-Arrays/zadanie50.py | 20 +++++++++++ 06-Arrays/zadanie51.py | 12 +++++++ 06-Arrays/zadanie52.py | 13 +++++++ 06-Arrays/zadanie53.py | 8 +++++ 06-Arrays/zadanie54.py | 4 +++ 06-Arrays/zadanie55.py | 34 ++++++++++++++++++ 06-Arrays/zadanie56.py | 4 +++ 06-Arrays/zadanie9.py | 11 ++++++ 07-FileHandling/.~lock.07-FilesHandling.docx# | 1 + 68 files changed, 444 insertions(+) create mode 100644 04-Subroutines/__pycache__/amount_to_pay.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/binary.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/checking.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/converters.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/counting.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/credit_card.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/even_number_sum.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/months.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/mykeyboard.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/mymath.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/number_of_neg_even.cpython-312.pyc create mode 100644 04-Subroutines/__pycache__/sum_in_range.cpython-312.pyc create mode 100644 06-Arrays/MyArrays.py create mode 100644 06-Arrays/MyText.py create mode 100644 06-Arrays/__pycache__/MyArrays.cpython-312.pyc create mode 100644 06-Arrays/__pycache__/MyText.cpython-312.pyc create mode 100644 06-Arrays/__pycache__/convert.cpython-312.pyc create mode 100644 06-Arrays/__pycache__/zadanie54.cpython-312.pyc create mode 100644 06-Arrays/convert.py create mode 100644 06-Arrays/test.py create mode 100644 06-Arrays/zadanie10.py create mode 100644 06-Arrays/zadanie11.py create mode 100644 06-Arrays/zadanie12.py create mode 100644 06-Arrays/zadanie13.py create mode 100644 06-Arrays/zadanie14.py create mode 100644 06-Arrays/zadanie15.py create mode 100644 06-Arrays/zadanie16.py create mode 100644 06-Arrays/zadanie17.py create mode 100644 06-Arrays/zadanie18.py create mode 100644 06-Arrays/zadanie20.py create mode 100644 06-Arrays/zadanie21.py create mode 100644 06-Arrays/zadanie22.py create mode 100644 06-Arrays/zadanie23.py create mode 100644 06-Arrays/zadanie24.py create mode 100644 06-Arrays/zadanie25.py create mode 100644 06-Arrays/zadanie26.py create mode 100644 06-Arrays/zadanie27.py create mode 100644 06-Arrays/zadanie28.py create mode 100644 06-Arrays/zadanie29.py create mode 100644 06-Arrays/zadanie30.py create mode 100644 06-Arrays/zadanie31.py create mode 100644 06-Arrays/zadanie32.py create mode 100644 06-Arrays/zadanie33.py create mode 100644 06-Arrays/zadanie34.py create mode 100644 06-Arrays/zadanie35.py create mode 100644 06-Arrays/zadanie36.py create mode 100644 06-Arrays/zadanie37.py create mode 100644 06-Arrays/zadanie38.py create mode 100644 06-Arrays/zadanie39.py create mode 100644 06-Arrays/zadanie40.py create mode 100644 06-Arrays/zadanie41.py create mode 100644 06-Arrays/zadanie42.py create mode 100644 06-Arrays/zadanie43.py create mode 100644 06-Arrays/zadanie44.py create mode 100644 06-Arrays/zadanie45.py create mode 100644 06-Arrays/zadanie46.py create mode 100644 06-Arrays/zadanie47.py create mode 100644 06-Arrays/zadanie48.py create mode 100644 06-Arrays/zadanie49.py create mode 100644 06-Arrays/zadanie50.py create mode 100644 06-Arrays/zadanie51.py create mode 100644 06-Arrays/zadanie52.py create mode 100644 06-Arrays/zadanie53.py create mode 100644 06-Arrays/zadanie54.py create mode 100644 06-Arrays/zadanie55.py create mode 100644 06-Arrays/zadanie56.py create mode 100644 06-Arrays/zadanie9.py create mode 100644 07-FileHandling/.~lock.07-FilesHandling.docx# diff --git a/04-Subroutines/__pycache__/amount_to_pay.cpython-312.pyc b/04-Subroutines/__pycache__/amount_to_pay.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7dc45f8c59ab7607713b09a7d7304cd3718139fc GIT binary patch literal 577 zcma)4F;Bu!5Wd$IZKzd*2*hB*N{q%D9W(|PHxm}(VwyBaYeIm&`r5{TC1G%2aB!2+ zQGbhz$U<11*htuzyjOwX<|X&#zI{GdyZIrN&Sx(~9jH$A(k0 z=j3piXurgxUa4k;W|wcx@|xz$r}~v^F;_1-tZ8}lp6VBtTlJ`;JC3Fw9PJhT8%BMv zVq32M=k&hQ7?NAIj>~vL_W_{|gLtBSxdhQvSNn=)2J%*SvnOwN)PbCMzU#^9jxvsb zlJ08#XlA?;PXF;GvV8r{tI~__zEyki6QoM=Q%X+oJQQ*y48&HEuni9QJTR5d>eTdW WR-VO>hH?2n7>k6EiLgdeq4x&}Op|^9 literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/binary.cpython-312.pyc b/04-Subroutines/__pycache__/binary.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1c52a98ce2e2bdb3d95c66f756c942ec0bda54ad GIT binary patch literal 326 zcmX@j%ge<81Ut^zr#1uW#~=<2FhUuhK}x1Gq%gEFL@`t{YBD9mWIzg-q4={LSXB*! z3qvdi14Aui4Py#p8DlYH4+kSdB@+unC9@`r-z_EsL${EX44O>0c#|^o5{oM1^Gb7* zQj2b}revmPmJ~AqO;J$zWu9ym6Iz^FR2&mrP*jy#l3$)52i zT$)srUs{rxms%VHF-otX@)l!S5zux9kPC|yfkXqt4MDk23{0$&9jrIF1!k~Z;+DB7 zEb)OADDr`gfk)soP!WTlCL>r|5etx0#0etUfy6Hko80`A(wtPgB2XBB4FxeiFf%eT Mer94}6acFQ0CV_AyZ`_I literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/checking.cpython-312.pyc b/04-Subroutines/__pycache__/checking.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8d683d8c6978819343d0f166b6e62e9405210273 GIT binary patch literal 328 zcmX@j%ge<81e=!Gr=|kw#~=<2FhUuhK}x1Gq%gEFL@`t{YBD7=!;}DNHXsJ^KWhMq z=?patB`|#qHH@zqQ~0tm_&iWn=IDw#D|{9b~Tg}7-l-eN6E%u7$zWWL3i zd5f{)7Gq^G$UFrFgvy1}JM zMfs&AnR%(jG07RJ$=R8C>3Ri~w^+fPB2J)5Ad8BnfJ6hs4R($m*9nRf0w)ws4DR;5 z$S!$YaZCcwwa8VpuQ2YUkR=fCfQE-qB1`#9>GZS-< z5W%(hr?`kHXq?2!t=P@Ucc}$85Ax-`kMDi&ySvZjGJvOaxy;`1{~??1N&XgXip3RB zIDu`T1d%X>Dtn^OahPw~u5-Xdfci{HMHsq}V*v zOEX1VQk6dBBErjKS{yXCk%P_-XO{wY4IW8ygRq{F7FAMRM(Yt6^N2XXV?%LuTk% M8*ZgQ8;H~Y04l|PtN;K2 literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/counting.cpython-312.pyc b/04-Subroutines/__pycache__/counting.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..171a8feb0e567d16d88d307b3db79d0da5b27c81 GIT binary patch literal 397 zcmX@j%ge<81iDM@Q~iPTV-N=h7@>^MASKfoQW#noq8KU}HJOr`U`l{A3lK8{@#h#I zF`c1?Aq%Dt$cKT|P(~I=B^sz<#HV95)U;p*O-4UWrdzBz`Q@oaw^)<&OY=&Ae3p{b zijrGwIjJQjsYS&ghbbuhvP`y$2`vWlV}c8cs!~hx%kyJgQj4=o@(W@L3JhZmOmu@w zlZx_7OEU9Pi(|lMW#*;p6;$5h1#{w|<`r=O4FtKMSRP0;Fx=qg@3-o->bAMgEqjq$ zc1GI#oS8YZ^DcAiUSQGv3{=A4r^yJ`w34BS6UZ%M2NJ(HY;yBcN^?@}inxJXuz8>` R{lLt~$oQFwkx>t<767|3QI!Ay literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/credit_card.cpython-312.pyc b/04-Subroutines/__pycache__/credit_card.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aa700b71723c625a7a8a21abbdd088f96edaa5ec GIT binary patch literal 346 zcmX@j%ge<81bf!lr}_cu#~=<2FhUuhK}x1Gq%gEFL@`t{YBD9mWIzg7fS4JGKg$7$ z=?patDU2yhQVc1~RX{$F$CAP-#Q1L>5SPf;@GSo1pFlB2nFcd}CFqMFGfdMwPFg@8oyNaAjSYc{w z7;2a#fgG583Ud|E1u2YRQw3|7ajUH2Wnidfu3<`H0kfD$asgwHQw?)4$o;Hfn<7cl zO^o}^f&Qeq`!(78UV=jM7E4G`Y3fT*JiY`)&Mj8A#GK+(P3Bw7#U(|zm~&F|ZZT)( zm1wfuV#_PdO-e1g#gbYE6lBZQbF~J2zRjDQU<@qr# zsm0kP`2{fr1%@#OCc43;Nk#dkC7F4t#W5g5;vpu+1I^JZsJz9PRwMv44djgC+d!g$ z;RXk1gX0Y@?gr;OyaE%%x}zK1Zm@HAlr`1e;Nzd7JSBOC+T`rZLQ0qTlpn0uGBSQ<;$!3os|5hwWIvg%?%k?g_#r6{NL%C9+gNs|8 z+}-?FbaBq=$oIbYz3)Aee3eS;K*dqmM4u}E=wcOcNiuDD12K38cOZqH z6|FkjU@uR$Z(Lmv!*}=u$8Zc{Yotc^lQKX+R!F0sbZUh5 z2hwhZsmwJ+f;0|NnXieiU|g>Gh;TIQASw$t5yzUiZTzs1+&YR3`_)(b0G=gbBJ)F> z@E&89(khktd2|unGDKP66FNd1KjNT{*geN2Aml7KtseWLL$Tof1hHT-d_q#`7)rO* z8oi$B7fryQWtZ}k#>@r9&FR6k_Imho`JF3gstMX2G@IKLnkHBX z;vv$D2cd$WKyvZuckmKg1-s-R_yt09k(_*+>=qn&znS^X%zHEQz9*A0;Ih2DM?NEf zKfV)+7#PzsH%`EScTfd_4Ai_2K(hi67zQa-;Xe-(f#4pGRYlHAhCsxjut-JF#a)~e z>p|sQNgOdh(?bp?5Cz72SqSs_xfo~|u%SMJH&B5)z`{=9F3=SO?8;@05ax0=8nR*6 zb>V>5ci<2oKnLY;xtA)Lj8H{aOt)Plw4n4J?3u6iR>M#lrtPx4^0Y;ChbSb-3uBDD zBs8CsJlrsuC(V<+*mJ$*k`kpB^(346kvJu~p)GFDAx~adjz5?(+pZVXeTPs-t=P0j znANe=UE(yEWvjNmu0GmatGG34xvXIlM{ReTq+7FeYUJ%M^=F=gzc8oBp$`*5lCtCU zwU7Iwn`>v8{8{?pK>oFq86^LXxII&$vW0zAH)du<|qxPP|nHoe*8*PZxc=P zL_Y5N95+0PSxj$HnZNS|rW}F#A2f>;+m_+B$YYx3uD=*(o5KVngf3(mWhW^R6NBC< pzHuJEe!SD)4b<;M>ci&yC;ig77#+nnzLtK9g-IO5Rhr`U{{WwCwm$#> literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/mymath.cpython-312.pyc b/04-Subroutines/__pycache__/mymath.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21ae4491dd0612cc80aa274f2e2f833863114490 GIT binary patch literal 380 zcmX@j%ge<81TypNQzL-%V-N=hn4pZ$3P8qmh7^Vr#vFzyh7_h2hA2iRhE&GYPz8(( zm5iFqFF`!NWT+UJVgZuOK>S$`NK9uaVFZf;i7c4eFaaQ)!kEIe8Y&*lpvmm_5~Tbk zCy>x&y2VzMn3s~Ddy5@JXXcfxWcUoy`^!ApDkiizwWv5IxS*&iwIshhKgK1sIJ+dj zAf}+eFvh?{H@GyZD8IBMGcUC`Cbu#-u_QyUpz;=fdTL&3QDRAId|qj8Qfg5VH_$kc z^~J(KqJiNKw_v|rr`-(28IG5^H{+)Bjarb-cL-7jPef|_^&buf;9mEu$E26 literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/number_of_neg_even.cpython-312.pyc b/04-Subroutines/__pycache__/number_of_neg_even.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4853ee2a928ca6417681403b0d6cbe943cb8108c GIT binary patch literal 427 zcmXw#%}N4M6vxlGGb5!Al2Ej4*({30Ac#H|x`-BnSeu#WT;guchc-!bw>2S`M8JQ`Ja35m#T(=?DOZGw|1RQDa_qVR-uoOxf(?Boggshe_&XpObGJFGrJTY@8Te3{o?NfLREl tvEHRm0+7*gA^8r1-UuQ>VZL_KFw4$8KNB%JF17_fK9dm9X9~s^>_2+LVmtr< literal 0 HcmV?d00001 diff --git a/04-Subroutines/__pycache__/sum_in_range.cpython-312.pyc b/04-Subroutines/__pycache__/sum_in_range.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b8012ce16d3754dc70672b575fead762744db9f2 GIT binary patch literal 373 zcmX@j%ge<81ZQm>QbU0BV-N=h7@>^MASKfoQW#noq8KU}HJOrOG9U%4K+FuppKX8y zP!(e>V+mY7g{g)ig{cZCvziG=0D%ibEIR{3EmI9+4O0~_kj2=;$-+>>7|fu_?DrC+ z;w4D8CgUyEqQt!PR88hvjCr@1i%WBFF=iHnEK*QV_+^`H6%$&VT2vepTu@Y%T9RL$ zALEi*oL!P%5K~ZK7-L|f8(f-HlwVqsnU`7|1JoU#nHLW>P_Ll!7Gqiw$WI`PiuHg* z1H%n2?gr;Oyh0NUCj?F?oEY34^NE3xRj`Bc1_yUXVJAl?^9N=i{{c5&gV$%E4hBC> uMz9$x8H%`p+#*gO@r%PIH$SB`C)KV9=rf4%AbWsX85ut_u`u$3)dB#u8&Yxr literal 0 HcmV?d00001 diff --git a/06-Arrays/MyArrays.py b/06-Arrays/MyArrays.py new file mode 100644 index 000000000..e75777de0 --- /dev/null +++ b/06-Arrays/MyArrays.py @@ -0,0 +1,25 @@ +def second_largest(arr): + arr1 = [] + for a in arr: + arr1.append(a) + for i in range(len(arr1)): + for j in range(0, len(arr1)-i-1): + if arr1[j]>arr1[j+1]: + arr1[j],arr1[j+1] = arr1[j+1],arr1[j] + return arr1[-2] + +def difference(arr): + return (max(arr) - min(arr)) + +def median(arr): + if len(arr)%2== 0: + return (arr[len(arr)//2]+arr[(len(arr)//2)+1])/2 + else: + return arr[len(arr)//2] + +def two_element(arr): + array = [min(arr), max(arr)] + return ', '.join(map(str, array)) + +def string(arr): + return '-'.join(map(str, arr)) \ No newline at end of file diff --git a/06-Arrays/MyText.py b/06-Arrays/MyText.py new file mode 100644 index 000000000..26f60d7c9 --- /dev/null +++ b/06-Arrays/MyText.py @@ -0,0 +1,17 @@ +def number(text): + arr = text.split(' ') + return len(arr) + +def longest(text): + arr = text.split(' ') + for i in range(len(arr)): + for j in range(0, len(arr)-i-1): + if len(arr[j])(x3&~vMx3(lr}|%%xoHslXz!} zM#f@4D9T!PB!XkR6s3Jo_Qn6BF9~@G!#)&RD8AYF=EK@^#$>ayVS6CIIrrXkPR=>^ zch4WeU>5=T=f^M9MS+mNaM2XnP)-Ly*&zz~fqYIB3P=?JP*4~kQ$#?q=#jkXrUyE9 zz>mT2^fAB=$&giQl1cJqgpgIiq;pT(f(42xJZ$VzvUx=$2Ku{Vc$%6?n>Nia#GHbd ztYxjxcJ?M)fm#&-@gdZT0=^^QE1J|4UxGD$!2&c~%})}d)6L$?yG`3PRAGuYFL~i= z^L3GIek?*Pg<+H=k;Lg^P{=V>cl`ML{9Iy=S1uG(O>sP2)-tNYa;heI942$_hyXE% z$_~vsbWX?GqbO%@r{7K8(N(Uek_En^8u_JsYEsqbjeH?hD8y3N$43*K%SAnPt9YTj zRVX^$x|+^w%4|;N8C5rU2;yNT`mX?Mq~;H$K(z-1l$zt;A2=Ck%G} z4)$)3Sw`udYVcZ}Fwgipebn=UwfJDjR(_H861#8g$-AS~o{>5cI>*-&wNS)LY%E!Z zov`KIiLGKa6s--99P}K-4kP;?9Vkb!!%R6mV2ReuR);OxGxp+c^5@QfJ>Y)A;15oG zBoMZQjriK_Q^=59qLm06F0HPEvO|m~G%`t(5G^9K_VCi-BIvXvIBY>)2FPlMly^cD z9b-g!H=xs{WbfWpxvHgAeg!uCc#g^%c@zj)?B3M2ZjY6gD}ny980BF&xs)E>m7AUo zO8fK_y5dD1&I9wfWVS5mH6(PS~#*jVYAYdEpL5N2}k!Lzo!p| ze*5Z(?#~~^_Gc>tH!9&9M~jtEyzGnr8A3worMNw_^NE9GSAR@FaP76;vwr=evySln0R^2Kd{8{m+*ChiM6^W9v?D_`f- o_xUiGyL0GOP+-f0ZZ$Ot+f$JM1`OSFSSV89&C!F*`*j`HqNYQY=jg_ zt3+_6f=TrdFGaD3{*PV+dkBlSp1j%QmQ&xXi7}yv_Jf_BH{W}2X1+J?hr`i?0C)Fa zsb4WdzqnBW*cOT%@Y_QQ`haGUf?>o8fsrHxSqxXaxT{e9iX&D;5=CyZ+ykKClk)01 z)_H`5)Wmsn%LYq(Q_qUPp_(h&VSyjI*bBjX=zp%LOFSD#^|BQyCeiCzgw{z_5QY5B zKS|c$;EKS<6RrXPVnOe9;ii95=mMsay_SJ!;BN8@kcr`~dr6!Wsw}s-SD5hGD9oxn zx3)$_v=tPQB1Rg(tV8vVP*7=_a?vih&jnY#g!^TYiZC-J8j8JDDHq2SBiein2%e8} zsZBg@;t1o8ZUAlMYYkBiBA8Cw!Qyc&14Dfc9c{ZFgMId<=L$%WhBolItHW42=*fil zdvk-?zT8Z<|IGEEfJo!ehX35zW_XOHo#FJm15bwK26Hoqp6u%W*qO68-*Z2=bmTf@ zhu)*Wch~XD(^j`382%kwM#%Uxq3pyL`)>)-Tnez!r5)XJZhJSq#zcDTRP3b9aJZT` zbloN&f%%s=l*EziMuCtrbgqhph^;cK{=bn*^)bAc2p6snH5C%CDkNi5SWpvdq~9$| zSM?E@MxpIMZc~bCE6_SFNJROT}~)6 literal 0 HcmV?d00001 diff --git a/06-Arrays/__pycache__/convert.cpython-312.pyc b/06-Arrays/__pycache__/convert.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ccb91db0d9a635180f127a14752529d66f8c5502 GIT binary patch literal 388 zcmX@j%ge<81n-VUr*XtLa5PAn?A#R4P@Z!u=xV$3RL0cutNf?vkTRxzQ)sYS&x!39NC zsU`X4`7ti3#n~nK1u+E$hA{?ax{gIfiIv4M$@zI@sYNAv1(mnhq3j|~pfMl^6q^Hy z28J8lybUflcm+N&FtJK^Fy0Up`ozGyVH9HW3S&wW}wIiW}t!(Yz#aC z4c?!DS{Z=O1sk@Kp$HUOMI1ol7l%!5eoARhs$CHekPEg4B>91vk&*E;6Dy+tSSH literal 0 HcmV?d00001 diff --git a/06-Arrays/__pycache__/zadanie54.cpython-312.pyc b/06-Arrays/__pycache__/zadanie54.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6b3b75029d82cba010fe9e876afd05c5f62ea88e GIT binary patch literal 378 zcmX@j%ge<81dCoqr+NVC#~=<2FhUuhK}x1Gq%gEFL@`t{YBD9mWIzhofS4JGKL-Gb z=?o=sxf+JmP__$0KVvdeIzuv3EH48?En^8tJs8w5!qiM;>fvVrs;FfQ29k_mRyl(v zqn{?zE#|7sf?F&(nZ+eQ4rA^u=A!)aVkV#g3JSkWldWPxi&Kk=V}c8cs!~hx%kyJg zQj4=o@(W@L3JhZm%yb=#iV`b}W2zEU67w=sO-=L)DsKst6eZ>r7vvYG#^)xM6lGQv zaRAK&xwlvjNHj3qQB+wFxLE8Ox5fAd`~*_PEI=iFLdqgGJa-aWYjDIaREbCQ)mDH literal 0 HcmV?d00001 diff --git a/06-Arrays/convert.py b/06-Arrays/convert.py new file mode 100644 index 000000000..2fdf0fefd --- /dev/null +++ b/06-Arrays/convert.py @@ -0,0 +1,6 @@ +def convert(arr): + arr1 = [] + for i in arr: + for j in i: + arr1.append(j) + return arr1 \ No newline at end of file diff --git a/06-Arrays/test.py b/06-Arrays/test.py new file mode 100644 index 000000000..b0fdb9a82 --- /dev/null +++ b/06-Arrays/test.py @@ -0,0 +1,8 @@ +arr1 = [3,5] +arr2 = [2,8,9,5,3,2,4] +for i in arr1: + if i in arr2: + x = True + else: + x = False +print(x) \ No newline at end of file diff --git a/06-Arrays/zadanie10.py b/06-Arrays/zadanie10.py new file mode 100644 index 000000000..b50a85422 --- /dev/null +++ b/06-Arrays/zadanie10.py @@ -0,0 +1,8 @@ +arr =[1,2,3,4,5] +print(arr) +arr[0]-=1 +print(arr) +arr[-1]+=4 +print(arr) +arr[len(arr)//2] = arr[len(arr)//2]*2 +print(arr) \ No newline at end of file diff --git a/06-Arrays/zadanie11.py b/06-Arrays/zadanie11.py new file mode 100644 index 000000000..43d438c9b --- /dev/null +++ b/06-Arrays/zadanie11.py @@ -0,0 +1,6 @@ +def month(n): + month_name = ['January', 'February', 'March', 'April', 'May', 'June', 'July', + 'August', 'September', 'October', 'November', 'December'] + return month_name[n-1] +n = int(input('Enter month number: ')) +print(f'Month name: {month(n)}') \ No newline at end of file diff --git a/06-Arrays/zadanie12.py b/06-Arrays/zadanie12.py new file mode 100644 index 000000000..a6ff13c8a --- /dev/null +++ b/06-Arrays/zadanie12.py @@ -0,0 +1,6 @@ +arr = [34,7,19,4,21,8] +even = 0 +for i in arr: + if i%2 == 0: + even+=1 +print(even) \ No newline at end of file diff --git a/06-Arrays/zadanie13.py b/06-Arrays/zadanie13.py new file mode 100644 index 000000000..7c77736e9 --- /dev/null +++ b/06-Arrays/zadanie13.py @@ -0,0 +1,5 @@ +import matplotlib.pyplot as plt +commutes_by = ['car', 'public transport', 'bike', 'on foot'] +number_of_people = [25, 19, 32, 7] +plt.bar(commutes_by,number_of_people) +plt.show() \ No newline at end of file diff --git a/06-Arrays/zadanie14.py b/06-Arrays/zadanie14.py new file mode 100644 index 000000000..29a6674af --- /dev/null +++ b/06-Arrays/zadanie14.py @@ -0,0 +1,6 @@ +arr = [[2,5,4],[9,0,3]] +print(arr) +print(len(arr), len(arr[0])) +print(arr[0][1]) +print(arr[1][2]) +print(*arr[1], sep = ' ') \ No newline at end of file diff --git a/06-Arrays/zadanie15.py b/06-Arrays/zadanie15.py new file mode 100644 index 000000000..86269ab90 --- /dev/null +++ b/06-Arrays/zadanie15.py @@ -0,0 +1,4 @@ +arr =[[1,3,5],[8,7,2]] +print(arr[0][0]+arr[-1][-1]) +print(arr[0][len(arr[0])//2]+arr[1][len(arr[1])//2]) +print(sum(arr[1])) \ No newline at end of file diff --git a/06-Arrays/zadanie16.py b/06-Arrays/zadanie16.py new file mode 100644 index 000000000..1de61c1a0 --- /dev/null +++ b/06-Arrays/zadanie16.py @@ -0,0 +1,7 @@ +arr= [[3,9,2],[2,4,5],[7,1,6],[0,4,8]] +sum = 0 +for i in arr: + for j in i: + if j%2 !=0: + sum+=j +print(sum) \ No newline at end of file diff --git a/06-Arrays/zadanie17.py b/06-Arrays/zadanie17.py new file mode 100644 index 000000000..d6b3e4c88 --- /dev/null +++ b/06-Arrays/zadanie17.py @@ -0,0 +1,4 @@ +arr = [[0,0,0],[0,0,0],[0,0,0]] +for i in range(len(arr)): + arr[i][i]+=1 + print(*arr[i], sep = ' ') \ No newline at end of file diff --git a/06-Arrays/zadanie18.py b/06-Arrays/zadanie18.py new file mode 100644 index 000000000..2ee57e7d6 --- /dev/null +++ b/06-Arrays/zadanie18.py @@ -0,0 +1,6 @@ +arr=[[True,False],[True,True],[False,False]] +print(arr) +for i in range(len(arr)): + for j in range(len(arr[0])): + arr[i][j] = not arr[i][j] +print(arr) \ No newline at end of file diff --git a/06-Arrays/zadanie20.py b/06-Arrays/zadanie20.py new file mode 100644 index 000000000..4a7ad29de --- /dev/null +++ b/06-Arrays/zadanie20.py @@ -0,0 +1,8 @@ +arr = [34,7,19,4,21,8] +sum = 0 +i = 0 +while i maximum: + maximum = i +for i in arr: + if i < minimum: + minimum = i +print(f'Max: {maximum}') +print(f'Min: {minimum}') \ No newline at end of file diff --git a/06-Arrays/zadanie24.py b/06-Arrays/zadanie24.py new file mode 100644 index 000000000..17c2b1a4f --- /dev/null +++ b/06-Arrays/zadanie24.py @@ -0,0 +1,5 @@ +arr = [15, 8, 31, 47, 2, 19] +sum = 0 +for i in arr: + sum += i +print(sum/len(arr)) \ No newline at end of file diff --git a/06-Arrays/zadanie25.py b/06-Arrays/zadanie25.py new file mode 100644 index 000000000..ce40e2d54 --- /dev/null +++ b/06-Arrays/zadanie25.py @@ -0,0 +1,7 @@ +arr = [15, 8, 31, 47, 2, 19] +sum = 0 +i = 0 +while i < len(arr): + sum += arr[i] + i+=1 +print(sum/len(arr)) \ No newline at end of file diff --git a/06-Arrays/zadanie26.py b/06-Arrays/zadanie26.py new file mode 100644 index 000000000..2e1c7fb40 --- /dev/null +++ b/06-Arrays/zadanie26.py @@ -0,0 +1,9 @@ +arr = ["Genowefa", "Onufry", "Celestyna", "Alojzy", "Pankracy"] +print('Names:', *arr, sep = ' ') +longest_name = arr[0] +a = 0 +for i in arr: + if len(arr[a])>len(longest_name): + longest_name = arr[a] + a+=1 +print(f"Longest name: {longest_name}") \ No newline at end of file diff --git a/06-Arrays/zadanie27.py b/06-Arrays/zadanie27.py new file mode 100644 index 000000000..388ae1695 --- /dev/null +++ b/06-Arrays/zadanie27.py @@ -0,0 +1,3 @@ +arr = [12, 6, 4, 9, 10] +for i in arr: + print(f"{i}: {i*'*'}") \ No newline at end of file diff --git a/06-Arrays/zadanie28.py b/06-Arrays/zadanie28.py new file mode 100644 index 000000000..16dd2cc0e --- /dev/null +++ b/06-Arrays/zadanie28.py @@ -0,0 +1,14 @@ +def compare(arr1, arr2): + print(f'Array 1: {arr1}') + print(f'Array 2: {arr2}') + if len(arr1) == len(arr2): + for i in range(len(arr1)): + if arr1[i] == arr2[i]: + return True + return False + return False + +if __name__ == '__main__': + print("Comparison: arrays are the same" if compare(["water","book","sky"], ["water","book","sky"]) else "Comparison: arrays aren't the same") + print("Comparison: arrays are the same" if compare([True,False], [True,False,True]) else "Comparison: arrays aren't the same") + print("Comparison: arrays are the same" if compare([5,3,1], [5,3,1]) else "Comparison: arrays aren't the same") \ No newline at end of file diff --git a/06-Arrays/zadanie29.py b/06-Arrays/zadanie29.py new file mode 100644 index 000000000..393b6aee9 --- /dev/null +++ b/06-Arrays/zadanie29.py @@ -0,0 +1,7 @@ +arr1 = [4,36,12,28,9,44,5] +arr2 = [5,1,36] +s ='' +for i in arr1: + if i not in arr2: + s += str(i)+' ' +print(s) \ No newline at end of file diff --git a/06-Arrays/zadanie30.py b/06-Arrays/zadanie30.py new file mode 100644 index 000000000..304f19e80 --- /dev/null +++ b/06-Arrays/zadanie30.py @@ -0,0 +1,12 @@ +def bubblesort(arr): + for i in range(len(arr)): + for j in range(0,len(arr)-i-1): + if arr[j]>arr[j+1]: + arr[j], arr[j+1] = arr[j+1], arr[j] + return arr +arr1 = [4,36,12,28,9,44,5] +arr2 = [5,1,36] +arr3 = [3,6,12,4,34,82] +print(bubblesort(arr1)) +print(bubblesort(arr2)) +print(bubblesort(arr3)) \ No newline at end of file diff --git a/06-Arrays/zadanie31.py b/06-Arrays/zadanie31.py new file mode 100644 index 000000000..e4568aa60 --- /dev/null +++ b/06-Arrays/zadanie31.py @@ -0,0 +1,13 @@ +arr = [2, 3, 2, 5, 8, 1, 9, 8] +counting_numbers = {} +arr2=[] +for i in arr: + if i in counting_numbers: + counting_numbers[i] +=1 + else: + counting_numbers[i] = 1 +for i, count in counting_numbers.items(): + if count == 1: + arr2.append(i) +print('Array:',*arr, sep = ' ') +print('Unique elements:',*arr2, sep = ' ') \ No newline at end of file diff --git a/06-Arrays/zadanie32.py b/06-Arrays/zadanie32.py new file mode 100644 index 000000000..e0b253f4a --- /dev/null +++ b/06-Arrays/zadanie32.py @@ -0,0 +1,10 @@ +def occurs(number, array): + array = [15, 38, 7, 23, 14] + if number in array: + return True + return False + +array = [15, 38, 7, 23, 14] +number = int(input('Number: ')) +print('Array:', *array, sep = ' ') +print(f'Result: number {number} appears in the array' if occurs(number, array) else f'Result: number {number} does not appear in the array') \ No newline at end of file diff --git a/06-Arrays/zadanie33.py b/06-Arrays/zadanie33.py new file mode 100644 index 000000000..6a9fb5c39 --- /dev/null +++ b/06-Arrays/zadanie33.py @@ -0,0 +1,2 @@ +word_tuple = ('computation',) +print(f'TYpe of a variable:{type(word_tuple)}') \ No newline at end of file diff --git a/06-Arrays/zadanie34.py b/06-Arrays/zadanie34.py new file mode 100644 index 000000000..dda95e1c5 --- /dev/null +++ b/06-Arrays/zadanie34.py @@ -0,0 +1,3 @@ +my_tuple = (10,20,30,40,50) +print('Tuple:', ', '.join(map(str, my_tuple))) +print('Reversed order:', ', '.join(map(str, reversed(my_tuple)))) \ No newline at end of file diff --git a/06-Arrays/zadanie35.py b/06-Arrays/zadanie35.py new file mode 100644 index 000000000..0ec97feab --- /dev/null +++ b/06-Arrays/zadanie35.py @@ -0,0 +1,3 @@ +my_tuple = ("Seven", [10, 20, 30], (5, 15, 25)) +print(my_tuple[0]) +print(my_tuple[1][2]) \ No newline at end of file diff --git a/06-Arrays/zadanie36.py b/06-Arrays/zadanie36.py new file mode 100644 index 000000000..cff30c96c --- /dev/null +++ b/06-Arrays/zadanie36.py @@ -0,0 +1,10 @@ +my_tuple = (50,20,40,50,30,50) +counting_numbers = {} +for i in my_tuple: + if i in counting_numbers: + counting_numbers[i] += 1 + else: + counting_numbers[i] = 1 +print('Tuple:', ', '.join(map(str, my_tuple))) +n = int(input('Number: ')) +print(f'Number of occurrences: {counting_numbers[n]}') \ No newline at end of file diff --git a/06-Arrays/zadanie37.py b/06-Arrays/zadanie37.py new file mode 100644 index 000000000..e6de5888b --- /dev/null +++ b/06-Arrays/zadanie37.py @@ -0,0 +1,7 @@ +import MyArrays +arr = [7,3,8,5,2] +print('Numbers:', *arr) +print(f'Secondlargest number: {MyArrays.second_largest(arr)}') +print(f'Median: {MyArrays.median(arr)}') +print(f'Smallest and largest number: {MyArrays.two_element(arr)}') +print(f'Numbers as a string: {MyArrays.string(arr)}') \ No newline at end of file diff --git a/06-Arrays/zadanie38.py b/06-Arrays/zadanie38.py new file mode 100644 index 000000000..9d56025e3 --- /dev/null +++ b/06-Arrays/zadanie38.py @@ -0,0 +1,12 @@ +arr= [15, 38, 7, 23, 14] +print(f'Array: {', '.join(map(str, arr))}') +for i in range(len(arr)): + for j in range(0, len(arr)-i-1): + if arr[j]>arr[j+1]: + arr[j], arr[j+1] = arr[j+1], arr[j] +n = float(input('Enternumber form array: ')) +x = arr.index(n) +sum = 0 +for i in range(x+1, len(arr)): + sum+=1 +print(f'Number of elements that are greater: {sum}') \ No newline at end of file diff --git a/06-Arrays/zadanie39.py b/06-Arrays/zadanie39.py new file mode 100644 index 000000000..41be91504 --- /dev/null +++ b/06-Arrays/zadanie39.py @@ -0,0 +1,6 @@ +arr = [15, 38, 7, 23, 14, 18] +for i in range(len(arr)): + for j in range(0, len(arr)-i-1): + if arr[j]%2!=0 and arr[j+1]%2 == 0: + arr[j], arr[j+1] = arr[j+1], arr[j] +print(arr) \ No newline at end of file diff --git a/06-Arrays/zadanie40.py b/06-Arrays/zadanie40.py new file mode 100644 index 000000000..b5a65a863 --- /dev/null +++ b/06-Arrays/zadanie40.py @@ -0,0 +1,12 @@ +import random +arr = [] +s = '|' +a = 0 +for i in range(8): + arr.append(random.randint(1,999)) +for j in arr: + s += ' '*(4 - len(str(arr[a]))) + str(j)+'|' + a+=1 +print('-'*((len(arr)*5)+1)) +print(s) +print('-'*((len(arr)*5)+1)) diff --git a/06-Arrays/zadanie41.py b/06-Arrays/zadanie41.py new file mode 100644 index 000000000..ec9c7d1d8 --- /dev/null +++ b/06-Arrays/zadanie41.py @@ -0,0 +1,8 @@ +def f(arr1, arr2): + for i in arr1: + if i not in arr2: + return False + return True +arr1 = [3,5,8] +arr2 = [2,8,9,5,3,2,4] +print(f'First array is a subset of a second array: {f(arr1, arr2)}') \ No newline at end of file diff --git a/06-Arrays/zadanie42.py b/06-Arrays/zadanie42.py new file mode 100644 index 000000000..7c2e1dbc8 --- /dev/null +++ b/06-Arrays/zadanie42.py @@ -0,0 +1,6 @@ +import random +def rand_elem(array): + return random.choice(array) +array = [3,24,6,56,4,32,15,2,8] +print(array) +print(rand_elem(array)) \ No newline at end of file diff --git a/06-Arrays/zadanie43.py b/06-Arrays/zadanie43.py new file mode 100644 index 000000000..68d0888df --- /dev/null +++ b/06-Arrays/zadanie43.py @@ -0,0 +1,6 @@ +import MyText +text = 'An apple a day keeps the doctor away' +print(f'Text: {text}') +print(f'Number of words: {MyText.number(text)}') +print(f'Words from the longest: {MyText.longest(text)}') +print(f'Words ordered alphabetically: {MyText.sort_arr(text)}') \ No newline at end of file diff --git a/06-Arrays/zadanie44.py b/06-Arrays/zadanie44.py new file mode 100644 index 000000000..d7de2c3b7 --- /dev/null +++ b/06-Arrays/zadanie44.py @@ -0,0 +1,12 @@ +import matplotlib.pyplot as plt + +x = list(range(-100, 101)) +y = [((n**2) - 3) for n in x] +print(y) +# Plot the graph +plt.plot(x, y) +plt.title('Graph of the function f(x) = x^2 - 3') +plt.xlabel('x') +plt.ylabel('f(x)') +plt.grid(True) +plt.show() \ No newline at end of file diff --git a/06-Arrays/zadanie45.py b/06-Arrays/zadanie45.py new file mode 100644 index 000000000..2df17395c --- /dev/null +++ b/06-Arrays/zadanie45.py @@ -0,0 +1,10 @@ +import math +import matplotlib.pyplot as plt +x = list(range(0, 360)) +y = [math.sin(math.radians(n)) for n in x] +plt.plot(x, y) +plt.title('Graph of the function f(x) = x^2 - 3') +plt.xlabel('x') +plt.ylabel('f(x)') +plt.grid(True) +plt.show() \ No newline at end of file diff --git a/06-Arrays/zadanie46.py b/06-Arrays/zadanie46.py new file mode 100644 index 000000000..c557f14c6 --- /dev/null +++ b/06-Arrays/zadanie46.py @@ -0,0 +1,5 @@ +arr = [[1,2,3,4], [5,6,7,8]] +for row in arr: + for element in row: + print(element, end = ' ') + print() \ No newline at end of file diff --git a/06-Arrays/zadanie47.py b/06-Arrays/zadanie47.py new file mode 100644 index 000000000..ae6870f69 --- /dev/null +++ b/06-Arrays/zadanie47.py @@ -0,0 +1,5 @@ +arr = [[7, 3, 7, 9, 0], [2, 9, 0, 1, 5], [3, 8, 6, 4, 7], [8, 7, 1, 1, 5]] +sum = 0 +for i in range(len(arr)): + sum += arr[i][-1] +print(sum) \ No newline at end of file diff --git a/06-Arrays/zadanie48.py b/06-Arrays/zadanie48.py new file mode 100644 index 000000000..176223365 --- /dev/null +++ b/06-Arrays/zadanie48.py @@ -0,0 +1,3 @@ +def create_2d_arr(x,y): + return [[0] * y for i in range(x)] +print(create_2d_arr(3,5)) \ No newline at end of file diff --git a/06-Arrays/zadanie49.py b/06-Arrays/zadanie49.py new file mode 100644 index 000000000..9c5f127e6 --- /dev/null +++ b/06-Arrays/zadanie49.py @@ -0,0 +1,9 @@ +array = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] +for i in range(5): + for j in range(5): + array[i][j] = (i + 1) * (j + 1) + +for row in array: + for element in row: + print(element, end=' ') + print() \ No newline at end of file diff --git a/06-Arrays/zadanie50.py b/06-Arrays/zadanie50.py new file mode 100644 index 000000000..0dc55ddcb --- /dev/null +++ b/06-Arrays/zadanie50.py @@ -0,0 +1,20 @@ +array = [[-38, 19], [5, 40], [-7, 11], [29, 16]] + +smallest_value = float('inf') +largest_value = float('-inf') +smallest_row = largest_row = smallest_col = largest_col = None + +for i in range(len(array)): + for j in range(len(array[i])): + current_value = array[i][j] + + if current_value < smallest_value: + smallest_value = current_value + smallest_row, smallest_col = i, j + + if current_value > largest_value: + largest_value = current_value + largest_row, largest_col = i, j + +print(f"The smallest value is {smallest_value}, located at row {smallest_row} and column {smallest_col}.") +print(f"The largest value is {largest_value}, located at row {largest_row} and column {largest_col}.") diff --git a/06-Arrays/zadanie51.py b/06-Arrays/zadanie51.py new file mode 100644 index 000000000..c2143d7e5 --- /dev/null +++ b/06-Arrays/zadanie51.py @@ -0,0 +1,12 @@ +arr = [[7, 5, 3, 8, 1], +[6, 8, 9, 2, 1], +[10, 4, 6, 1, 5]] +for i in range(len(arr)): + for j in range(len(arr[i])): + print(arr[i][j], end = ' ') + print() +arr[0], arr[-1] = arr[-1], arr[0] +for i in range(len(arr)): + for j in range(len(arr[i])): + print(arr[i][j], end = ' ') + print() \ No newline at end of file diff --git a/06-Arrays/zadanie52.py b/06-Arrays/zadanie52.py new file mode 100644 index 000000000..c9b2ee9f8 --- /dev/null +++ b/06-Arrays/zadanie52.py @@ -0,0 +1,13 @@ +arr = [[7, 5, 3, 8, 1], +[6, 8, 9, 2, 1], +[10, 4, 6, 1, 5]] +for i in range(len(arr)): + for j in range(len(arr[i])): + print(arr[i][j], end = ' ') + print() +for i in range(len(arr)): + arr[i][0], arr[i][-1] = arr[i][-1], arr[i][0] +for i in range(len(arr)): + for j in range(len(arr[i])): + print(arr[i][j], end = ' ') + print() \ No newline at end of file diff --git a/06-Arrays/zadanie53.py b/06-Arrays/zadanie53.py new file mode 100644 index 000000000..41eae06ee --- /dev/null +++ b/06-Arrays/zadanie53.py @@ -0,0 +1,8 @@ +def identity_matrix(n): + return [[1 if i == j else 0 for j in range(n)] for i in range(n)] +def display(matrix): + for i in range(len(matrix)): + for j in range(len(matrix[i])): + print(matrix[i][j], end = ' ') + print() +display(identity_matrix(5)) \ No newline at end of file diff --git a/06-Arrays/zadanie54.py b/06-Arrays/zadanie54.py new file mode 100644 index 000000000..21d5a1d16 --- /dev/null +++ b/06-Arrays/zadanie54.py @@ -0,0 +1,4 @@ +def transpose_matrix(m): + return [list(row) for row in zip(*m)] + + diff --git a/06-Arrays/zadanie55.py b/06-Arrays/zadanie55.py new file mode 100644 index 000000000..1535eb5b1 --- /dev/null +++ b/06-Arrays/zadanie55.py @@ -0,0 +1,34 @@ +import zadanie54 +matrix1 = [ + [1, 2, 3], + [4, 5, 6], + [7, 8, 9] +] + +print("Original Matrix:") +for row in matrix1: + print(row) + +print("\nTransposed Matrix:") +for row in zadanie54.transpose_matrix(matrix1): + print(row) +matrix2 = [ + [1, 2, 3, 4, 5], + [6, 7, 8, 9, 0] +] +print("Original Matrix:") +for row in matrix2: + print(row) + +print("\nTransposed Matrix:") +for row in zadanie54.transpose_matrix(matrix2): + print(row) + +matrix3 = [5, 6, 7, 8] +print("Original Matrix:") +for row in matrix3: + print(row) + +print("\nTransposed Matrix:") +for row in zadanie54.transpose_matrix(matrix3): + print(row) \ No newline at end of file diff --git a/06-Arrays/zadanie56.py b/06-Arrays/zadanie56.py new file mode 100644 index 000000000..2f8d6a4c2 --- /dev/null +++ b/06-Arrays/zadanie56.py @@ -0,0 +1,4 @@ +import convert +print(convert.convert([[2, 3], [1, 5]])) +print(convert.convert([[5, 0, 3, 7, 5], [9, 0, 9, 1, 2]])) +print(convert.convert([[2, 1], [3, 5], [7, 4], [2, 6]])) \ No newline at end of file diff --git a/06-Arrays/zadanie9.py b/06-Arrays/zadanie9.py new file mode 100644 index 000000000..7630959c7 --- /dev/null +++ b/06-Arrays/zadanie9.py @@ -0,0 +1,11 @@ +arr = [2,3,7,5,4] +print(arr) +print(len(arr)) +print(arr[0]) +print(arr[1]) +print(arr[-1]) +print(arr[len(arr)-2]) +print(arr[0]+arr[-1]) +print(arr[len(arr)//2]) +for i in arr: + print(i, end = ' ') \ No newline at end of file diff --git a/07-FileHandling/.~lock.07-FilesHandling.docx# b/07-FileHandling/.~lock.07-FilesHandling.docx# new file mode 100644 index 000000000..4be203e0e --- /dev/null +++ b/07-FileHandling/.~lock.07-FilesHandling.docx# @@ -0,0 +1 @@ +,DESKTOP-83P2VEE/Sprzetowo,DESKTOP-83P2VEE,21.11.2023 00:22,file:///C:/Users/Sprzetowo/AppData/Roaming/LibreOffice/4; \ No newline at end of file From 26d79e0a0e473bb80c7e810734a222cdbb647a1a Mon Sep 17 00:00:00 2001 From: s-013-27 Date: Wed, 22 Nov 2023 18:03:12 +0100 Subject: [PATCH 3/9] During Class --- 07-FileHandling/countries.txt | 5 ++ 07-FileHandling/data.csv | 101 ++++++++++++++++++++++++++++++++++ 07-FileHandling/movies.txt | 5 ++ 07-FileHandling/numbers.txt | 5 ++ 07-FileHandling/shopping.txt | 5 ++ 07-FileHandling/student.txt | 3 + 07-FileHandling/zadanie10.py | 3 + 07-FileHandling/zadanie11.py | 10 ++++ 07-FileHandling/zadanie12.py | 8 +++ 07-FileHandling/zadanie13.py | 8 +++ 07-FileHandling/zadanie14.py | 11 ++++ 07-FileHandling/zadanie8.py | 4 ++ 07-FileHandling/zadanie9.py | 6 ++ 13 files changed, 174 insertions(+) create mode 100644 07-FileHandling/countries.txt create mode 100644 07-FileHandling/data.csv create mode 100644 07-FileHandling/movies.txt create mode 100644 07-FileHandling/numbers.txt create mode 100644 07-FileHandling/shopping.txt create mode 100644 07-FileHandling/student.txt create mode 100644 07-FileHandling/zadanie10.py create mode 100644 07-FileHandling/zadanie11.py create mode 100644 07-FileHandling/zadanie12.py create mode 100644 07-FileHandling/zadanie13.py create mode 100644 07-FileHandling/zadanie14.py create mode 100644 07-FileHandling/zadanie8.py create mode 100644 07-FileHandling/zadanie9.py diff --git a/07-FileHandling/countries.txt b/07-FileHandling/countries.txt new file mode 100644 index 000000000..4ad567f8b --- /dev/null +++ b/07-FileHandling/countries.txt @@ -0,0 +1,5 @@ +Poland +Germany +Slovakia +Ukraine +Lithuania diff --git a/07-FileHandling/data.csv b/07-FileHandling/data.csv new file mode 100644 index 000000000..a32e1c3f8 --- /dev/null +++ b/07-FileHandling/data.csv @@ -0,0 +1,101 @@ +name,surname,gender,age,married,children,email,phone,work,salary,creditcard,expenditures,car,carcolor +Burk,Servis,Male,52,false,3,bservis0@engadget.com,579 737 143,Editor,6970,true,2788,Mercedes-Benz,Purple +Hermann,Bankhurst,Male,40,true,0,hbankhurst1@yolasite.com,819 292 179,Assistant Professor,12170,true,3651,Ford,Khaki +Cullen,Millgate,Male,39,true,6,cmillgate2@about.me,522 851 085,Human Resources Manager,16040,false,9624,Chevrolet,Violet +Flin,Kenelin,Male,56,false,3,fkenelin3@vistaprint.com,850 679 777,Nurse,7230,true,3615,Mercury,Khaki +Lucas,Truett,Male,32,true,6,ltruett4@vimeo.com,634 910 417,Senior Quality Engineer,15070,false,12056,Mitsubishi,Pink +Merill,Heskey,Male,43,true,1,mheskey5@timesonline.co.uk,867 998 661,General Manager,7640,false,2292,Pontiac,Fuscia +Evaleen,Uttridge,Female,56,true,1,euttridge6@github.com,634 127 470,Media Manager III,3050,false,2135,Dodge,Indigo +Kippar,Kinner,Male,40,true,1,kkinner7@theglobeandmail.com,804 964 440,Geologist III,8420,false,2526,Volkswagen,Maroon +Cal,Sharratt,Male,40,true,1,csharratt8@miibeian.gov.cn,818 449 500,Health Coach IV,11910,false,10719,Lincoln,Crimson +Bartel,Cochern,Male,36,true,3,bcochern9@constantcontact.com,688 837 145,Help Desk Technician,17410,true,13928,Dodge,Goldenrod +Hanna,Gyford,Female,51,false,5,hgyforda@washington.edu,563 129 315,Automation Specialist I,6870,true,5496,Dodge,Violet +Thomasa,Clancy,Female,45,true,3,tclancyb@cpanel.net,848 812 477,Assistant Manager,13040,false,7824,Cadillac,Orange +Joseito,Benettini,Male,36,true,6,jbenettinic@hao123.com,539 402 404,Automation Specialist III,3440,true,3096,Dodge,Blue +Carr,Vanshin,Male,27,true,0,cvanshind@edublogs.org,804 857 401,Internal Auditor,9800,true,7840,Chevrolet,Indigo +Tomasine,Samuel,Female,54,true,2,tsamuele@t-online.de,568 881 391,Speech Pathologist,2640,true,1320,Ford,Puce +Gino,De Blasiis,Male,38,true,4,gdeblasiisf@feedburner.com,562 355 808,Internal Auditor,3990,true,798,Volkswagen,Red +Valentine,Fritchley,Female,55,true,4,vfritchleyg@about.com,870 931 235,Accountant I,9120,false,3648,Land Rover,Aquamarine +Silvanus,O'Longain,Male,33,true,0,solongainh@hugedomains.com,563 081 802,Tax Accountant,4730,true,2365,Audi,Khaki +Jeramey,Solly,Male,21,true,0,jsollyi@adobe.com,824 315 578,Marketing Assistant,1980,true,1584,MINI,Yellow +Stephan,Dunge,Male,20,false,6,sdungej@unc.edu,802 767 891,Help Desk Technician,3890,true,1945,Scion,Puce +Katusha,Grebner,Female,47,true,4,kgrebnerk@samsung.com,847 394 157,Web Developer I,7580,false,6064,Dodge,Blue +Ciro,Rosenbush,Male,55,true,4,crosenbushl@alibaba.com,805 491 393,Senior Developer,4800,true,3360,Acura,Goldenrod +Madelyn,Nannizzi,Female,53,false,6,mnannizzim@state.gov,840 113 963,Assistant Manager,15890,true,6356,Dodge,Purple +Sumner,Hansbury,Male,25,false,0,shansburyn@clickbank.net,544 291 869,Senior Editor,11410,true,5705,Lexus,Green +Carlye,Scamel,Female,22,true,3,cscamelo@java.com,836 193 850,Administrative Assistant II,6780,true,1356,Mitsubishi,Green +Tab,Ondricek,Male,18,false,1,tondricekp@netvibes.com,539 853 933,Administrative Assistant II,17230,true,6892,Scion,Blue +Benoite,Ethelston,Female,53,false,1,bethelstonq@networksolutions.com,834 948 779,Technical Writer,3010,true,1505,Pontiac,Aquamarine +Rodney,Hucke,Male,58,true,1,rhucker@chron.com,578 892 703,Accounting Assistant I,6290,false,3145,Suzuki,Teal +Corene,Samuels,Female,29,false,2,csamuelss@addthis.com,635 120 341,Assistant Manager,4430,true,1329,Mitsubishi,Indigo +Cindy,Dubble,Female,59,true,1,cdubblet@cbsnews.com,861 291 786,Payment Adjustment Coordinator,11280,false,4512,Chrysler,Blue +Tessa,Crocroft,Female,23,false,3,tcrocroftu@youku.com,847 707 528,Health Coach III,9040,true,4520,Ford,Pink +Lorry,Upfold,Male,37,false,4,lupfoldv@canalblog.com,668 174 428,Web Designer III,6820,false,2728,MINI,Indigo +Hammad,Stanhope,Male,59,true,3,hstanhopew@digg.com,882 187 785,Quality Control Specialist,7780,true,3112,Isuzu,Pink +Ruttger,Norridge,Male,36,false,2,rnorridgex@dailymail.co.uk,874 958 392,Social Worker,5610,true,1122,Suzuki,Mauv +Bonnibelle,Stelfox,Female,25,false,6,bstelfoxy@hud.gov,819 408 786,GIS Technical Architect,9930,true,5958,Mercedes-Benz,Turquoise +Dionysus,Gobourn,Male,36,true,0,dgobournz@dropbox.com,690 147 674,Recruiter,5810,true,4648,Ford,Blue +Yulma,Sharplin,Male,41,true,2,ysharplin10@technorati.com,540 212 731,Speech Pathologist,5710,true,3997,Mitsubishi,Orange +Etti,Antognetti,Female,22,true,2,eantognetti11@springer.com,820 959 260,Help Desk Operator,2640,false,2376,Oldsmobile,Aquamarine +Tulley,Glanz,Male,52,false,3,tglanz12@prweb.com,574 043 990,Technical Writer,6940,false,1388,Pontiac,Yellow +Morse,Dwelly,Male,29,true,1,mdwelly13@t-online.de,885 586 546,Speech Pathologist,6480,true,2592,Lincoln,Mauv +Gael,Henstone,Female,24,false,5,ghenstone14@army.mil,637 031 073,Marketing Manager,5640,true,2820,Ford,Khaki +Neddie,D'Alesco,Male,19,false,4,ndalesco15@uiuc.edu,514 170 021,Research Nurse,12350,false,4940,Mitsubishi,Goldenrod +Lazar,Moran,Male,35,false,5,lmoran16@ehow.com,633 742 403,Marketing Manager,9720,true,6804,Plymouth,Indigo +Harbert,Dawid,Male,31,true,5,hdawid17@smugmug.com,822 680 985,Nuclear Power Engineer,14970,false,13473,Porsche,Maroon +Selle,Cheale,Female,38,false,1,scheale18@deliciousdays.com,843 349 465,Account Coordinator,9400,true,6580,Toyota,Aquamarine +Horatio,Cauthra,Male,43,true,2,hcauthra19@webnode.com,890 276 081,Environmental Tech,15390,false,13851,Porsche,Violet +Ethyl,Burlingame,Female,42,true,2,eburlingame1a@mayoclinic.com,571 332 272,Analog Circuit Design manager,15960,true,4788,Dodge,Crimson +Enrica,Heintsch,Female,23,false,2,eheintsch1b@creativecommons.org,883 618 250,Editor,17680,true,7072,Toyota,Pink +Sinclair,Rochewell,Male,27,true,4,srochewell1c@ezinearticles.com,830 492 111,Web Designer II,11640,true,5820,Jeep,Indigo +Licha,Brunetti,Female,44,false,3,lbrunetti1d@japanpost.jp,640 101 107,Senior Developer,5950,false,2380,Mercedes-Benz,Orange +Shelia,Ryle,Female,23,true,2,sryle1e@cbsnews.com,663 296 184,Staff Scientist,10030,false,5015,Ford,Pink +Jephthah,Studeart,Male,22,false,4,jstudeart1f@usnews.com,519 665 307,Staff Scientist,2260,false,1582,Subaru,Mauv +Nita,Maruszewski,Female,46,true,3,nmaruszewski1g@etsy.com,894 522 779,Marketing Assistant,16170,true,14553,Mitsubishi,Goldenrod +Marje,Shaul,Female,60,false,4,mshaul1h@dedecms.com,506 790 304,Automation Specialist III,7830,false,3132,Mazda,Mauv +Michele,Burkert,Male,57,true,6,mburkert1i@wikispaces.com,547 261 427,Tax Accountant,14140,false,11312,Dodge,Red +Monique,Limpkin,Female,29,false,2,mlimpkin1j@ycombinator.com,819 533 150,Staff Accountant III,2830,true,1698,Lexus,Crimson +Hewet,Gravet,Male,60,true,3,hgravet1k@addtoany.com,641 408 681,Structural Analysis Engineer,2060,true,1854,Suzuki,Teal +Dewitt,Tague,Male,24,false,2,dtague1l@wsj.com,606 101 555,General Manager,7810,true,3905,Land Rover,Khaki +Cristen,Byard,Female,25,false,5,cbyard1m@sciencedaily.com,576 863 742,Librarian,1860,true,1488,Volvo,Red +Kile,Suermeiers,Male,28,false,3,ksuermeiers1n@europa.eu,807 854 274,Payment Adjustment Coordinator,4320,false,3456,Mercedes-Benz,Khaki +Avictor,Benardette,Male,30,false,4,abenardette1o@nationalgeographic.com,667 621 570,Geological Engineer,3580,false,2148,Jaguar,Orange +Westbrook,Karim,Male,50,false,6,wkarim1p@sina.com.cn,681 504 173,Staff Scientist,16640,true,13312,Toyota,Violet +Gerome,Theml,Male,35,false,4,gtheml1q@furl.net,802 370 317,Research Associate,13300,true,6650,Rolls-Royce,Puce +Natala,Couling,Female,46,false,3,ncouling1r@sphinn.com,846 529 173,Director of Sales,9200,false,4600,Mitsubishi,Purple +Christoffer,Dunsmore,Male,23,true,0,cdunsmore1s@unicef.org,808 890 458,Chief Design Engineer,14110,true,4233,Mitsubishi,Puce +Vito,Frisch,Male,45,true,0,vfrisch1t@prweb.com,514 558 379,Sales Associate,3770,false,3016,Volkswagen,Blue +Tessie,McCoveney,Female,51,false,0,tmccoveney1u@washingtonpost.com,837 442 673,Financial Advisor,11710,true,7026,Ford,Orange +Pascale,Puckring,Male,19,false,5,ppuckring1v@mozilla.org,527 499 560,Physical Therapy Assistant,13760,false,2752,GMC,Mauv +Jephthah,Donativo,Male,45,false,6,jdonativo1w@cam.ac.uk,847 283 877,Database Administrator I,8270,false,1654,GMC,Mauv +Wendi,Llywarch,Female,24,false,2,wllywarch1x@is.gd,611 244 638,Human Resources Assistant III,6470,true,2588,Buick,Goldenrod +Demetrius,Cucinotta,Male,22,true,5,dcucinotta1y@archive.org,872 206 410,GIS Technical Architect,1510,true,453,Jaguar,Goldenrod +Daloris,Halson,Female,58,false,2,dhalson1z@businessinsider.com,657 600 411,General Manager,8120,false,6496,Ford,Crimson +Daniela,Batey,Female,50,true,4,dbatey20@blinklist.com,561 024 772,Help Desk Technician,12250,false,11025,Suzuki,Turquoise +Judon,Haizelden,Male,28,true,0,jhaizelden21@shutterfly.com,533 454 826,Social Worker,15910,false,11137,Dodge,Teal +Jamill,Obray,Male,37,false,6,jobray22@printfriendly.com,826 906 150,Environmental Specialist,3640,false,3276,Ford,Turquoise +Jone,Treece,Male,32,false,6,jtreece23@spiegel.de,617 663 646,Analog Circuit Design manager,5660,false,4528,Chevrolet,Blue +Karla,O'Sheeryne,Female,40,true,2,kosheeryne24@berkeley.edu,881 771 480,Biostatistician III,2670,true,2403,Ford,Yellow +Cyb,Van De Cappelle,Female,18,true,5,cvandecappelle25@barnesandnoble.com,820 311 476,Software Consultant,9120,false,2736,Ford,Turquoise +Lorrayne,Flippen,Female,19,false,1,lflippen26@google.it,823 468 710,Compensation Analyst,9200,true,3680,Mercury,Maroon +Noreen,O'Canavan,Female,52,true,0,nocanavan27@com.com,664 009 863,Legal Assistant,11640,false,6984,Hummer,Crimson +Pincus,Loughren,Male,27,true,2,ploughren28@apache.org,520 825 739,Business Systems Development Analyst,2100,false,1260,Dodge,Teal +Arlen,Grocutt,Male,38,false,6,agrocutt29@ebay.co.uk,693 915 155,Dental Hygienist,13090,false,7854,Porsche,Puce +Cindra,Barthot,Female,27,false,1,cbarthot2a@domainmarket.com,825 889 023,Executive Secretary,14640,false,8784,Audi,Pink +Putnem,Robley,Male,35,true,3,probley2b@cbc.ca,516 680 385,Structural Analysis Engineer,7490,false,5243,GMC,Goldenrod +Annabell,Tansill,Female,35,false,6,atansill2c@tmall.com,833 676 407,Software Engineer III,11320,false,5660,Toyota,Blue +Carr,Scullion,Male,52,true,6,cscullion2d@opera.com,848 732 898,Senior Developer,3880,false,2328,Nissan,Yellow +Noam,Adamski,Male,53,true,1,nadamski2e@hatena.ne.jp,529 402 879,Speech Pathologist,13260,false,9282,Saab,Orange +Adina,Von Welden,Female,54,true,6,avonwelden2f@flickr.com,807 354 244,Environmental Specialist,16160,true,4848,Nissan,Mauv +Johannes,Carlill,Male,29,true,5,jcarlill2g@netvibes.com,554 812 271,Environmental Specialist,16230,false,8115,Volkswagen,Puce +Rozamond,Terrill,Female,19,false,5,rterrill2h@va.gov,823 052 153,Geological Engineer,4350,false,2610,Mercedes-Benz,Violet +Alan,Stiggles,Male,30,true,1,astiggles2i@privacy.gov.au,858 765 046,Social Worker,17520,false,5256,Volkswagen,Teal +Alameda,Branton,Female,23,false,1,abranton2j@netlog.com,634 518 796,VP Sales,2450,false,1715,Saturn,Purple +Denice,Guichard,Female,36,false,4,dguichard2k@merriam-webster.com,698 065 766,Project Manager,12760,false,2552,Ford,Pink +Mic,Asker,Male,22,false,2,masker2l@sitemeter.com,889 516 511,Accountant II,13390,true,12051,Infiniti,Fuscia +Marchall,Johanssen,Male,34,false,2,mjohanssen2m@shareasale.com,833 234 352,Payment Adjustment Coordinator,3700,false,2220,Hyundai,Orange +Kimberlee,Dedham,Female,50,true,3,kdedham2n@blogger.com,803 767 819,Media Manager II,10860,false,9774,Hyundai,Red +Caresa,Goble,Female,39,false,6,cgoble2o@ning.com,683 834 279,Nurse Practicioner,17670,false,12369,Volvo,Teal +Elfreda,Rannells,Female,43,false,5,erannells2p@lulu.com,551 748 237,Tax Accountant,17120,false,5136,Pontiac,Puce +Gael,Worsfield,Female,56,false,5,gworsfield2q@icio.us,829 535 533,Internal Auditor,17820,true,8910,Mercedes-Benz,Mauv +Evie,Klampt,Female,56,false,4,eklampt2r@infoseek.co.jp,846 224 379,Project Manager,11720,false,10548,Pontiac,Aquamarine diff --git a/07-FileHandling/movies.txt b/07-FileHandling/movies.txt new file mode 100644 index 000000000..80724975e --- /dev/null +++ b/07-FileHandling/movies.txt @@ -0,0 +1,5 @@ +Harry Potter +Hunger Games +Lord of the Rings +Percy Jackson +Divergent diff --git a/07-FileHandling/numbers.txt b/07-FileHandling/numbers.txt new file mode 100644 index 000000000..fdc9f7cfb --- /dev/null +++ b/07-FileHandling/numbers.txt @@ -0,0 +1,5 @@ +11 +9 +23 +7 +2 \ No newline at end of file diff --git a/07-FileHandling/shopping.txt b/07-FileHandling/shopping.txt new file mode 100644 index 000000000..6e179e9fd --- /dev/null +++ b/07-FileHandling/shopping.txt @@ -0,0 +1,5 @@ +1. Milk +2. Bread +3. Fish +4. Water +5. Cheese diff --git a/07-FileHandling/student.txt b/07-FileHandling/student.txt new file mode 100644 index 000000000..4c0cf6e29 --- /dev/null +++ b/07-FileHandling/student.txt @@ -0,0 +1,3 @@ +Anna May +Krakow University of Economics +Applied Informatics diff --git a/07-FileHandling/zadanie10.py b/07-FileHandling/zadanie10.py new file mode 100644 index 000000000..a11d33619 --- /dev/null +++ b/07-FileHandling/zadanie10.py @@ -0,0 +1,3 @@ +file = open('data.csv', 'r') +print(file.read()) +file.close() \ No newline at end of file diff --git a/07-FileHandling/zadanie11.py b/07-FileHandling/zadanie11.py new file mode 100644 index 000000000..e3ee606de --- /dev/null +++ b/07-FileHandling/zadanie11.py @@ -0,0 +1,10 @@ +file = open('numbers.txt', 'r') +sum = 0 +print('Numbers:', end = ' ') +for line in file: + line = int(line) + sum+=line + print(line, end = ' ') +print() +print(f'Sum: {sum}') +file.close() diff --git a/07-FileHandling/zadanie12.py b/07-FileHandling/zadanie12.py new file mode 100644 index 000000000..7f0abf017 --- /dev/null +++ b/07-FileHandling/zadanie12.py @@ -0,0 +1,8 @@ +name = "Anna May" +university = "Krakow University of Economics" +field = "Applied Informatics" + +file = open("student.txt", "w") +file.write(name+"\n"+university+"\n"+field+"\n") + +file.close() diff --git a/07-FileHandling/zadanie13.py b/07-FileHandling/zadanie13.py new file mode 100644 index 000000000..b087a649b --- /dev/null +++ b/07-FileHandling/zadanie13.py @@ -0,0 +1,8 @@ +movie_titles = ["Harry Potter", "Hunger Games", "Lord of the Rings", "Percy Jackson", "Divergent"] +file = open("movies.txt", "w") +for i in movie_titles: + file.write(i+"\n") +file.close() +file = open("movies.txt", "r") +print(file.read()) +file.close() \ No newline at end of file diff --git a/07-FileHandling/zadanie14.py b/07-FileHandling/zadanie14.py new file mode 100644 index 000000000..8da391c37 --- /dev/null +++ b/07-FileHandling/zadanie14.py @@ -0,0 +1,11 @@ +file = open("shopping.txt","a") +read_product = True +counter = 0 +while read_product: + product = input("Enter product name: ") + if product != "": + counter += 1 + file.write(str(counter)+". "+product+"\n") + else: + read_product = False +file.close() diff --git a/07-FileHandling/zadanie8.py b/07-FileHandling/zadanie8.py new file mode 100644 index 000000000..f512db96b --- /dev/null +++ b/07-FileHandling/zadanie8.py @@ -0,0 +1,4 @@ +file = open('countries.txt', 'r') +file_content = file.read() +print( file_content ) +file.close() diff --git a/07-FileHandling/zadanie9.py b/07-FileHandling/zadanie9.py new file mode 100644 index 000000000..961f50949 --- /dev/null +++ b/07-FileHandling/zadanie9.py @@ -0,0 +1,6 @@ +file = open("countries.txt", 'r') +count = 0 +for line in file: + count+=1 + print(f'{count}. {line}', end = '') +file.close() \ No newline at end of file From d05664dbdb97bb24f513fe02db9f9f54c0c34dd1 Mon Sep 17 00:00:00 2001 From: s-013-27 Date: Wed, 29 Nov 2023 18:12:56 +0100 Subject: [PATCH 4/9] During Class --- 08-DictionariesStacksAndQueues/data.json | 5180 +++++++++++++++++++ 08-DictionariesStacksAndQueues/json.json | 11 + 08-DictionariesStacksAndQueues/zadanie10.py | 7 + 08-DictionariesStacksAndQueues/zadanie11.py | 11 + 08-DictionariesStacksAndQueues/zadanie7.py | 18 + 08-DictionariesStacksAndQueues/zadanie8.py | 10 + 08-DictionariesStacksAndQueues/zadanie9.py | 12 + 7 files changed, 5249 insertions(+) create mode 100644 08-DictionariesStacksAndQueues/data.json create mode 100644 08-DictionariesStacksAndQueues/json.json create mode 100644 08-DictionariesStacksAndQueues/zadanie10.py create mode 100644 08-DictionariesStacksAndQueues/zadanie11.py create mode 100644 08-DictionariesStacksAndQueues/zadanie7.py create mode 100644 08-DictionariesStacksAndQueues/zadanie8.py create mode 100644 08-DictionariesStacksAndQueues/zadanie9.py diff --git a/08-DictionariesStacksAndQueues/data.json b/08-DictionariesStacksAndQueues/data.json new file mode 100644 index 000000000..fac8426c1 --- /dev/null +++ b/08-DictionariesStacksAndQueues/data.json @@ -0,0 +1,5180 @@ +[ + { + "name": "Urbano", + "surname": "Rossander", + "gender": "Male", + "age": 25, + "country": "Poland", + "contact": { + "email": [ + "urossander0@networkadvertising.org", + "urossander0@businessinsider.com" + ], + "phone": "876 895 602" + }, + "languages": [ + "English", + "German", + "Ukrainian" + ], + "studies": { + "semester": 4, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 3, + 3, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 3, + 2, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 4, + 4, + 4, + 2 + ] + } + ] + } + }, + { + "name": "Krispin", + "surname": "Bezants", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [], + "phone": "680 229 085" + }, + "languages": [ + "French" + ], + "studies": { + "semester": 6, + "field": "Applied Informatics", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 5, + 2, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 3, + 2, + 5 + ] + } + ] + } + }, + { + "name": "Tadeas", + "surname": "Bleacher", + "gender": "Male", + "age": 18, + "country": "Ukraine", + "contact": { + "email": [ + "tbleacher2@amazon.de" + ], + "phone": "841 266 040" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 4, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 4, + 4, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4, + 4, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 4, + 3, + 2 + ] + } + ] + } + }, + { + "name": "Pincus", + "surname": "Haggis", + "gender": "Male", + "age": 22, + "country": "Germany", + "contact": { + "email": [ + "phaggis3@ifeng.com", + "phaggis3@tumblr.com" + ], + "phone": "827 150 525" + }, + "languages": [], + "studies": { + "semester": 5, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 5, + 2, + 4, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 3 + ] + } + ] + } + }, + { + "name": "Minnie", + "surname": "Mesant", + "gender": "Female", + "age": 24, + "country": "Czech Republic", + "contact": { + "email": [ + "mmesant4@clickbank.net", + "mmesant4@freewebs.com" + ], + "phone": "826 987 037" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 4, + 3 + ] + } + ] + } + }, + { + "name": "Thurstan", + "surname": "Lindmark", + "gender": "Male", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "tlindmark5@dailymotion.com" + ], + "phone": "516 624 948" + }, + "languages": [ + "German", + "French", + "English" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4, + 3, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 5, + 4, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 4, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Merv", + "surname": "Verdey", + "gender": "Male", + "age": 22, + "country": "Poland", + "contact": { + "email": [], + "phone": "837 576 346" + }, + "languages": [ + "Ukrainian", + "German", + "Spanish" + ], + "studies": { + "semester": 5, + "field": "Business Administration", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 4, + 4 + ] + } + ] + } + }, + { + "name": "Kinna", + "surname": "Pine", + "gender": "Female", + "age": 21, + "country": "Ukraine", + "contact": { + "email": [ + "kpine7@illinois.edu" + ], + "phone": "858 237 509" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 6, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 4, + 2, + 4 + ] + } + ] + } + }, + { + "name": "Aliza", + "surname": "Ramme", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [], + "phone": "888 542 309" + }, + "languages": [ + "German", + "English", + "Ukrainian" + ], + "studies": { + "semester": 4, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 2, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Prentice", + "surname": "Goodredge", + "gender": "Male", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [ + "pgoodredge9@narod.ru", + "pgoodredge9@edublogs.org" + ], + "phone": "807 658 976" + }, + "languages": [], + "studies": { + "semester": 1, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 4, + 3 + ] + } + ] + } + }, + { + "name": "Orlan", + "surname": "Boulter", + "gender": "Male", + "age": 20, + "country": "Poland", + "contact": { + "email": [], + "phone": "582 666 104" + }, + "languages": [ + "French", + "English", + "Ukrainian" + ], + "studies": { + "semester": 5, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 4, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Sydney", + "surname": "Andric", + "gender": "Female", + "age": 20, + "country": "Ukraine", + "contact": { + "email": [ + "sandricb@bandcamp.com" + ], + "phone": "848 848 246" + }, + "languages": [ + "Ukrainian", + "French" + ], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2, + 3, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 4, + 4, + 4, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 4 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 3, + 5, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Winnifred", + "surname": "Chung", + "gender": "Female", + "age": 25, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "888 434 346" + }, + "languages": [ + "French", + "German" + ], + "studies": { + "semester": 5, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3, + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 4, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 4, + 4, + 2, + 2 + ] + } + ] + } + }, + { + "name": "Giorgio", + "surname": "Pioli", + "gender": "Male", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [ + "gpiolid@prweb.com" + ], + "phone": "631 513 208" + }, + "languages": [ + "Spanish", + "German", + "English" + ], + "studies": { + "semester": 2, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 2, + 3, + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 3 + ] + } + ] + } + }, + { + "name": "Briant", + "surname": "Wroth", + "gender": "Male", + "age": 18, + "country": "Ukraine", + "contact": { + "email": [ + "bwrothe@businesswire.com", + "bwrothe@trellian.com" + ], + "phone": "601 587 452" + }, + "languages": [], + "studies": { + "semester": 6, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5, + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 4, + 5, + 5, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 4, + 3, + 2, + 5 + ] + }, + { + "name": "english", + "grades": [ + 2, + 4, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Drucill", + "surname": "Whate", + "gender": "Female", + "age": 24, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "833 279 433" + }, + "languages": [ + "French", + "German" + ], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 4 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 3 + ] + }, + { + "name": "english", + "grades": [ + 4, + 2, + 3 + ] + } + ] + } + }, + { + "name": "Rogers", + "surname": "Cowx", + "gender": "Male", + "age": 18, + "country": "Czech Republic", + "contact": { + "email": [ + "rcowxg@miibeian.gov.cn" + ], + "phone": "643 210 798" + }, + "languages": [ + "Spanish", + "German", + "English" + ], + "studies": { + "semester": 4, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4, + 4, + 3, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 2, + 4, + 2, + 3 + ] + } + ] + } + }, + { + "name": "Larina", + "surname": "Manvell", + "gender": "Female", + "age": 21, + "country": "Poland", + "contact": { + "email": [ + "lmanvellh@pagesperso-orange.fr" + ], + "phone": "833 911 642" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 6, + "field": "Applied Informatics", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 2, + 5, + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 5, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Konstantine", + "surname": "Brownsill", + "gender": "Male", + "age": 24, + "country": "Poland", + "contact": { + "email": [ + "kbrownsilli@archive.org" + ], + "phone": "819 316 364" + }, + "languages": [], + "studies": { + "semester": 1, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 2, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 4, + 2, + 3 + ] + }, + { + "name": "english", + "grades": [ + 5, + 2, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Flem", + "surname": "Beyne", + "gender": "Male", + "age": 24, + "country": "Poland", + "contact": { + "email": [ + "fbeynej@tinypic.com", + "fbeynej@google.it" + ], + "phone": "599 179 066" + }, + "languages": [ + "German", + "Ukrainian" + ], + "studies": { + "semester": 1, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 4, + 2, + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 3 + ] + } + ] + } + }, + { + "name": "Phelia", + "surname": "Basler", + "gender": "Female", + "age": 18, + "country": "Czech Republic", + "contact": { + "email": [ + "pbaslerk@jugem.jp" + ], + "phone": "814 204 281" + }, + "languages": [ + "German", + "Spanish" + ], + "studies": { + "semester": 6, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2, + 2, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 2, + 2, + 2, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 4, + 5, + 3, + 4 + ] + }, + { + "name": "english", + "grades": [ + 5, + 4 + ] + } + ] + } + }, + { + "name": "Orion", + "surname": "Havers", + "gender": "Male", + "age": 24, + "country": "Ukraine", + "contact": { + "email": [ + "ohaversl@myspace.com", + "ohaversl@uol.com.br" + ], + "phone": "651 374 892" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 1, + "field": "Business Administration", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 3, + 2, + 2, + 4 + ] + } + ] + } + }, + { + "name": "Ekaterina", + "surname": "Pimlock", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [], + "phone": "556 936 806" + }, + "languages": [ + "English", + "German", + "French" + ], + "studies": { + "semester": 5, + "field": "Business Administration", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5, + 4, + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 2, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4, + 4, + 4 + ] + } + ] + } + }, + { + "name": "Stearne", + "surname": "Huish", + "gender": "Male", + "age": 18, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "824 440 877" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 5, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 5, + 3, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Calli", + "surname": "Myhan", + "gender": "Female", + "age": 22, + "country": "Ukraine", + "contact": { + "email": [ + "cmyhano@slate.com" + ], + "phone": "599 265 356" + }, + "languages": [ + "German", + "Ukrainian", + "English" + ], + "studies": { + "semester": 1, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4, + 3, + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 4, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Blinnie", + "surname": "Goodisson", + "gender": "Female", + "age": 24, + "country": "Poland", + "contact": { + "email": [ + "bgoodissonp@whitehouse.gov", + "bgoodissonp@pcworld.com" + ], + "phone": "841 630 125" + }, + "languages": [ + "Ukrainian", + "German" + ], + "studies": { + "semester": 2, + "field": "Applied Informatics", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 2, + 2, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 4, + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 3 + ] + } + ] + } + }, + { + "name": "Gil", + "surname": "Lartice", + "gender": "Male", + "age": 24, + "country": "Poland", + "contact": { + "email": [ + "glarticeq@purevolume.com", + "glarticeq@ucsd.edu" + ], + "phone": "516 138 796" + }, + "languages": [ + "Ukrainian", + "Spanish", + "German" + ], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 2, + 3, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4, + 2, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Sharona", + "surname": "Davidovicz", + "gender": "Female", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [ + "sdavidoviczr@infoseek.co.jp" + ], + "phone": "673 835 080" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 4, + 2, + 5, + 5 + ] + } + ] + } + }, + { + "name": "Deerdre", + "surname": "Giacobilio", + "gender": "Female", + "age": 20, + "country": "Poland", + "contact": { + "email": [], + "phone": "855 133 471" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 5, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 4, + 5, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3, + 5, + 4 + ] + } + ] + } + }, + { + "name": "Shawnee", + "surname": "Dale", + "gender": "Female", + "age": 23, + "country": "Czech Republic", + "contact": { + "email": [ + "sdalet@globo.com" + ], + "phone": "882 969 293" + }, + "languages": [], + "studies": { + "semester": 4, + "field": "Applied Informatics", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3, + 4, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 4, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Vivian", + "surname": "Oldknowe", + "gender": "Female", + "age": 21, + "country": "Poland", + "contact": { + "email": [], + "phone": "628 290 633" + }, + "languages": [ + "Spanish", + "German" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3, + 5, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 4, + 4, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 3, + 2, + 5, + 4 + ] + }, + { + "name": "english", + "grades": [ + 2, + 3, + 2, + 5, + 5 + ] + } + ] + } + }, + { + "name": "Martelle", + "surname": "Brandli", + "gender": "Female", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "mbrandliv@tiny.cc" + ], + "phone": "876 030 951" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 6, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 2, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Kristan", + "surname": "Drummer", + "gender": "Female", + "age": 22, + "country": "Poland", + "contact": { + "email": [], + "phone": "565 790 064" + }, + "languages": [ + "French", + "German", + "Spanish" + ], + "studies": { + "semester": 6, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4, + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3, + 5, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Mignonne", + "surname": "Kaman", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "mkamanx@virginia.edu" + ], + "phone": "802 935 313" + }, + "languages": [ + "German", + "Spanish" + ], + "studies": { + "semester": 3, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3, + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 4, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Bastian", + "surname": "Slite", + "gender": "Male", + "age": 22, + "country": "Poland", + "contact": { + "email": [ + "bslitey@com.com", + "bslitey@e-recht24.de" + ], + "phone": "631 655 237" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 2, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 4, + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 2, + 4, + 2 + ] + } + ] + } + }, + { + "name": "Augustine", + "surname": "Oliffe", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "aoliffez@rambler.ru" + ], + "phone": "547 647 085" + }, + "languages": [ + "Ukrainian", + "French" + ], + "studies": { + "semester": 4, + "field": "Business Administration", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 2, + 4 + ] + } + ] + } + }, + { + "name": "Goober", + "surname": "Pettersen", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [], + "phone": "562 728 149" + }, + "languages": [ + "French", + "English" + ], + "studies": { + "semester": 5, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 4, + 3 + ] + }, + { + "name": "english", + "grades": [ + 4, + 4, + 2, + 3 + ] + } + ] + } + }, + { + "name": "Rourke", + "surname": "Gethins", + "gender": "Male", + "age": 21, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "567 004 810" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 3, + "field": "Law", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 2, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 3, + 5, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 3, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Marybeth", + "surname": "Haime", + "gender": "Female", + "age": 24, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "633 739 651" + }, + "languages": [ + "French", + "German", + "English" + ], + "studies": { + "semester": 6, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 2, + 5, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 3, + 3, + 5 + ] + } + ] + } + }, + { + "name": "Tann", + "surname": "Stormes", + "gender": "Male", + "age": 24, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "891 147 435" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 5, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 3, + 5 + ] + } + ] + } + }, + { + "name": "Rasla", + "surname": "Trangmar", + "gender": "Female", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "rtrangmar14@myspace.com", + "rtrangmar14@merriam-webster.com" + ], + "phone": "847 973 026" + }, + "languages": [ + "German", + "English" + ], + "studies": { + "semester": 4, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 5, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 2, + 5, + 5 + ] + } + ] + } + }, + { + "name": "Ronny", + "surname": "Hess", + "gender": "Male", + "age": 21, + "country": "Poland", + "contact": { + "email": [ + "rhess15@google.com.hk", + "rhess15@ucoz.com" + ], + "phone": "664 837 079" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 4, + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 4, + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 4, + 5 + ] + } + ] + } + }, + { + "name": "Sonni", + "surname": "Heel", + "gender": "Female", + "age": 20, + "country": "Czech Republic", + "contact": { + "email": [ + "sheel16@google.nl", + "sheel16@blogspot.com" + ], + "phone": "837 590 606" + }, + "languages": [], + "studies": { + "semester": 4, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 4, + 3, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 2, + 3, + 4, + 5 + ] + }, + { + "name": "english", + "grades": [ + 5, + 4, + 5, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Morie", + "surname": "Hancox", + "gender": "Male", + "age": 25, + "country": "Germany", + "contact": { + "email": [], + "phone": "586 803 158" + }, + "languages": [ + "English", + "German", + "Spanish" + ], + "studies": { + "semester": 3, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 3, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 5, + 4 + ] + }, + { + "name": "english", + "grades": [ + 4, + 3, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Dniren", + "surname": "Shepperd", + "gender": "Female", + "age": 20, + "country": "Poland", + "contact": { + "email": [], + "phone": "815 180 384" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 5, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 5, + 5, + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 5, + 3 + ] + }, + { + "name": "english", + "grades": [ + 5, + 3 + ] + } + ] + } + }, + { + "name": "Benn", + "surname": "Kingswell", + "gender": "Male", + "age": 19, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "688 938 455" + }, + "languages": [ + "Ukrainian", + "French" + ], + "studies": { + "semester": 3, + "field": "Applied Informatics", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3, + 4, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 4 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 2 + ] + } + ] + } + }, + { + "name": "Jameson", + "surname": "Verbeke", + "gender": "Male", + "age": 19, + "country": "Ukraine", + "contact": { + "email": [ + "jverbeke1a@blogger.com", + "jverbeke1a@wufoo.com" + ], + "phone": "539 915 370" + }, + "languages": [ + "English", + "Spanish" + ], + "studies": { + "semester": 6, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 5 + ] + } + ] + } + }, + { + "name": "Becka", + "surname": "Janoch", + "gender": "Female", + "age": 18, + "country": "Czech Republic", + "contact": { + "email": [ + "bjanoch1b@twitpic.com" + ], + "phone": "557 509 243" + }, + "languages": [ + "Spanish", + "German" + ], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 2, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 5, + 4, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 2, + 4 + ] + } + ] + } + }, + { + "name": "Jerome", + "surname": "Rogger", + "gender": "Male", + "age": 20, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "668 349 675" + }, + "languages": [ + "Ukrainian", + "Spanish" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5 + ] + } + ] + } + }, + { + "name": "Arnold", + "surname": "Woolaston", + "gender": "Male", + "age": 23, + "country": "Lithuania", + "contact": { + "email": [], + "phone": "551 469 915" + }, + "languages": [ + "German", + "Ukrainian", + "French" + ], + "studies": { + "semester": 6, + "field": "Law", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 3, + 5, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 3 + ] + } + ] + } + }, + { + "name": "Leila", + "surname": "McCullagh", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "lmccullagh1e@biglobe.ne.jp", + "lmccullagh1e@moonfruit.com" + ], + "phone": "846 243 465" + }, + "languages": [ + "English", + "German" + ], + "studies": { + "semester": 6, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 5, + 4, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3, + 5, + 4 + ] + } + ] + } + }, + { + "name": "Richard", + "surname": "Gusney", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [], + "phone": "679 205 513" + }, + "languages": [ + "Spanish", + "German" + ], + "studies": { + "semester": 5, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 4, + 5, + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 2, + 3 + ] + } + ] + } + }, + { + "name": "Georgeta", + "surname": "Jeffreys", + "gender": "Female", + "age": 25, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "860 437 516" + }, + "languages": [], + "studies": { + "semester": 5, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 4, + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 5, + 3, + 5, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 2, + 2, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Vidovik", + "surname": "Scipsey", + "gender": "Male", + "age": 20, + "country": "Czech Republic", + "contact": { + "email": [ + "vscipsey1h@mit.edu", + "vscipsey1h@wikispaces.com" + ], + "phone": "861 971 273" + }, + "languages": [ + "French", + "English" + ], + "studies": { + "semester": 1, + "field": "Business Administration", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Retha", + "surname": "Harries", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "rharries1i@bluehost.com" + ], + "phone": "582 319 601" + }, + "languages": [], + "studies": { + "semester": 1, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 5, + 4, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3, + 3, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 3, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 5 + ] + } + ] + } + }, + { + "name": "Quinn", + "surname": "Watt", + "gender": "Male", + "age": 20, + "country": "Poland", + "contact": { + "email": [], + "phone": "648 831 641" + }, + "languages": [], + "studies": { + "semester": 4, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 2, + 3, + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 4, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 3, + 3, + 2, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 5, + 2 + ] + } + ] + } + }, + { + "name": "Tally", + "surname": "Paye", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [ + "tpaye1k@de.vu" + ], + "phone": "697 217 179" + }, + "languages": [], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 3, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 4, + 4, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 4, + 4, + 4 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 2 + ] + } + ] + } + }, + { + "name": "Melly", + "surname": "Grigore", + "gender": "Female", + "age": 19, + "country": "Lithuania", + "contact": { + "email": [ + "mgrigore1l@t-online.de", + "mgrigore1l@google.com.br" + ], + "phone": "857 330 778" + }, + "languages": [ + "French" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 3, + 3, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 2 + ] + } + ] + } + }, + { + "name": "Adah", + "surname": "Elliss", + "gender": "Female", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "aelliss1m@bravesites.com" + ], + "phone": "850 027 214" + }, + "languages": [ + "German", + "French" + ], + "studies": { + "semester": 5, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 4 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Patience", + "surname": "Lavin", + "gender": "Female", + "age": 24, + "country": "Poland", + "contact": { + "email": [ + "plavin1n@so-net.ne.jp", + "plavin1n@stumbleupon.com" + ], + "phone": "868 002 422" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 3 + ] + } + ] + } + }, + { + "name": "Jojo", + "surname": "Roth", + "gender": "Female", + "age": 24, + "country": "Czech Republic", + "contact": { + "email": [ + "jroth1o@technorati.com" + ], + "phone": "634 344 288" + }, + "languages": [], + "studies": { + "semester": 6, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 3, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5, + 4, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 3, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 4, + 5 + ] + } + ] + } + }, + { + "name": "Emmy", + "surname": "Cabrera", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [], + "phone": "810 859 509" + }, + "languages": [ + "English" + ], + "studies": { + "semester": 1, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 3, + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 2, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 5, + 3, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 3 + ] + }, + { + "name": "english", + "grades": [ + 3, + 4, + 5, + 5 + ] + } + ] + } + }, + { + "name": "Hamnet", + "surname": "Hawksby", + "gender": "Male", + "age": 24, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "864 316 144" + }, + "languages": [ + "Spanish", + "Ukrainian" + ], + "studies": { + "semester": 2, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3, + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 4 + ] + } + ] + } + }, + { + "name": "Editha", + "surname": "Darco", + "gender": "Female", + "age": 20, + "country": "Czech Republic", + "contact": { + "email": [ + "edarco1r@indiegogo.com" + ], + "phone": "606 925 788" + }, + "languages": [ + "Spanish" + ], + "studies": { + "semester": 2, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5, + 3, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 5, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 3, + 2, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Kenn", + "surname": "Ellerbeck", + "gender": "Male", + "age": 20, + "country": "Czech Republic", + "contact": { + "email": [ + "kellerbeck1s@java.com", + "kellerbeck1s@berkeley.edu" + ], + "phone": "813 282 186" + }, + "languages": [ + "French", + "English" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3, + 2 + ] + } + ] + } + }, + { + "name": "Elmira", + "surname": "Balcombe", + "gender": "Female", + "age": 19, + "country": "Ukraine", + "contact": { + "email": [ + "ebalcombe1t@cafepress.com", + "ebalcombe1t@geocities.com" + ], + "phone": "804 906 409" + }, + "languages": [ + "English" + ], + "studies": { + "semester": 6, + "field": "Accounting", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 3, + 2, + 4, + 3 + ] + } + ] + } + }, + { + "name": "Pearce", + "surname": "Pedler", + "gender": "Male", + "age": 22, + "country": "Ukraine", + "contact": { + "email": [ + "ppedler1u@storify.com", + "ppedler1u@go.com" + ], + "phone": "840 927 365" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 3, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 5, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 4, + 3, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4, + 2, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 5 + ] + } + ] + } + }, + { + "name": "Myrtle", + "surname": "Rielly", + "gender": "Female", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "mrielly1v@sciencedaily.com" + ], + "phone": "590 853 798" + }, + "languages": [], + "studies": { + "semester": 4, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 4, + 5, + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 4, + 3, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 3, + 4 + ] + }, + { + "name": "english", + "grades": [ + 5, + 5, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Heall", + "surname": "D'eath", + "gender": "Male", + "age": 20, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "620 892 113" + }, + "languages": [ + "Spanish", + "Ukrainian" + ], + "studies": { + "semester": 2, + "field": "Law", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3, + 2, + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2, + 5, + 2, + 2 + ] + } + ] + } + }, + { + "name": "Sibylle", + "surname": "Ambroise", + "gender": "Female", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "sambroise1x@xrea.com", + "sambroise1x@mtv.com" + ], + "phone": "866 492 633" + }, + "languages": [ + "Spanish", + "French", + "German" + ], + "studies": { + "semester": 1, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 3, + 3, + 4, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5, + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 3, + 5, + 3, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 2, + 3, + 5, + 2 + ] + }, + { + "name": "english", + "grades": [ + 2, + 5 + ] + } + ] + } + }, + { + "name": "Geoffry", + "surname": "Gosson", + "gender": "Male", + "age": 21, + "country": "Ukraine", + "contact": { + "email": [ + "ggosson1y@upenn.edu", + "ggosson1y@github.io" + ], + "phone": "806 503 668" + }, + "languages": [ + "Spanish" + ], + "studies": { + "semester": 6, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 3, + 3 + ] + }, + { + "name": "english", + "grades": [ + 4, + 4, + 4 + ] + } + ] + } + }, + { + "name": "Vilma", + "surname": "Mussotti", + "gender": "Female", + "age": 25, + "country": "Poland", + "contact": { + "email": [], + "phone": "890 292 299" + }, + "languages": [], + "studies": { + "semester": 2, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 5, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3, + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4 + ] + } + ] + } + }, + { + "name": "Dorrie", + "surname": "Keneleyside", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "dkeneleyside20@admin.ch", + "dkeneleyside20@patch.com" + ], + "phone": "829 788 435" + }, + "languages": [ + "English", + "French", + "Spanish" + ], + "studies": { + "semester": 4, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5, + 5, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 3, + 2, + 4, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 3 + ] + } + ] + } + }, + { + "name": "Sibyl", + "surname": "Hebblewhite", + "gender": "Female", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "602 903 554" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5, + 2, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 3, + 2, + 4 + ] + } + ] + } + }, + { + "name": "Babette", + "surname": "Woolager", + "gender": "Female", + "age": 22, + "country": "Poland", + "contact": { + "email": [ + "bwoolager22@macromedia.com", + "bwoolager22@loc.gov" + ], + "phone": "870 354 576" + }, + "languages": [], + "studies": { + "semester": 4, + "field": "Business Administration", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 5, + 3, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 2, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Portie", + "surname": "Oscroft", + "gender": "Male", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [ + "poscroft23@homestead.com" + ], + "phone": "846 821 169" + }, + "languages": [ + "Spanish" + ], + "studies": { + "semester": 5, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 5, + 3, + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 2, + 4, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 2 + ] + }, + { + "name": "english", + "grades": [ + 3, + 2 + ] + } + ] + } + }, + { + "name": "Leroi", + "surname": "O' Gara", + "gender": "Male", + "age": 20, + "country": "Poland", + "contact": { + "email": [ + "logara24@bravesites.com" + ], + "phone": "528 663 537" + }, + "languages": [ + "Spanish", + "Ukrainian" + ], + "studies": { + "semester": 1, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 4, + 4, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3 + ] + } + ] + } + }, + { + "name": "Orville", + "surname": "Thirsk", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [ + "othirsk25@mtv.com", + "othirsk25@ucoz.ru" + ], + "phone": "884 800 192" + }, + "languages": [ + "Spanish" + ], + "studies": { + "semester": 5, + "field": "Law", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 3, + 5, + 3, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 4, + 5, + 2, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 3, + 5, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Adrienne", + "surname": "Feragh", + "gender": "Female", + "age": 24, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "675 956 758" + }, + "languages": [], + "studies": { + "semester": 6, + "field": "Law", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 4, + 5, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 5, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 3, + 4, + 2, + 2, + 4 + ] + }, + { + "name": "english", + "grades": [ + 3, + 5, + 4, + 3 + ] + } + ] + } + }, + { + "name": "Felita", + "surname": "Lung", + "gender": "Female", + "age": 22, + "country": "Ukraine", + "contact": { + "email": [ + "flung27@marriott.com" + ], + "phone": "613 092 214" + }, + "languages": [ + "Ukrainian", + "English", + "Spanish" + ], + "studies": { + "semester": 3, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2, + 3, + 5 + ] + } + ] + } + }, + { + "name": "Megan", + "surname": "Filipson", + "gender": "Female", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "mfilipson28@nba.com" + ], + "phone": "876 003 376" + }, + "languages": [ + "German", + "English" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 3, + 4 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 2, + 5, + 4, + 2 + ] + }, + { + "name": "english", + "grades": [ + 3, + 2, + 3 + ] + } + ] + } + }, + { + "name": "Montgomery", + "surname": "Jowsey", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [ + "mjowsey29@symantec.com", + "mjowsey29@columbia.edu" + ], + "phone": "808 174 614" + }, + "languages": [], + "studies": { + "semester": 6, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 2 + ] + } + ] + } + }, + { + "name": "Rolph", + "surname": "Earl", + "gender": "Male", + "age": 24, + "country": "Czech Republic", + "contact": { + "email": [ + "rearl2a@comsenz.com", + "rearl2a@live.com" + ], + "phone": "617 341 741" + }, + "languages": [ + "French", + "Ukrainian", + "Spanish" + ], + "studies": { + "semester": 4, + "field": "Applied Informatics", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 5, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2, + 3, + 5 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 2, + 2, + 3, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 4, + 5, + 5 + ] + }, + { + "name": "english", + "grades": [ + 5, + 3 + ] + } + ] + } + }, + { + "name": "Torry", + "surname": "Charer", + "gender": "Male", + "age": 21, + "country": "Poland", + "contact": { + "email": [ + "tcharer2b@dedecms.com", + "tcharer2b@technorati.com" + ], + "phone": "523 194 272" + }, + "languages": [ + "Spanish", + "German" + ], + "studies": { + "semester": 5, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 4, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 4 + ] + } + ] + } + }, + { + "name": "Brendon", + "surname": "Went", + "gender": "Male", + "age": 19, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "609 128 833" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Law", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3, + 5, + 3, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 4, + 5 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 4, + 2, + 4, + 2 + ] + } + ] + } + }, + { + "name": "Orella", + "surname": "MacKomb", + "gender": "Female", + "age": 18, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "804 578 059" + }, + "languages": [ + "Spanish", + "English", + "Ukrainian" + ], + "studies": { + "semester": 2, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 2, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 3, + 5 + ] + } + ] + } + }, + { + "name": "Granville", + "surname": "Hedin", + "gender": "Male", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "ghedin2e@state.gov", + "ghedin2e@squarespace.com" + ], + "phone": "517 441 321" + }, + "languages": [ + "Spanish", + "French", + "English" + ], + "studies": { + "semester": 2, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 3, + 3, + 2, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 5, + 5, + 4 + ] + }, + { + "name": "english", + "grades": [ + 5, + 4 + ] + } + ] + } + }, + { + "name": "Ikey", + "surname": "Shoppee", + "gender": "Male", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "ishoppee2f@utexas.edu" + ], + "phone": "575 597 320" + }, + "languages": [], + "studies": { + "semester": 1, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5, + 2, + 2, + 5 + ] + } + ] + } + }, + { + "name": "Orbadiah", + "surname": "Drewry", + "gender": "Male", + "age": 23, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "590 999 122" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 1, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 4, + 5, + 2, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 3, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 4, + 3, + 4 + ] + } + ] + } + }, + { + "name": "Dayle", + "surname": "Dennington", + "gender": "Female", + "age": 21, + "country": "Ukraine", + "contact": { + "email": [ + "ddennington2h@gravatar.com", + "ddennington2h@arizona.edu" + ], + "phone": "662 846 544" + }, + "languages": [ + "English" + ], + "studies": { + "semester": 3, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 5, + 2, + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 2 + ] + } + ] + } + }, + { + "name": "Angelo", + "surname": "McShirrie", + "gender": "Male", + "age": 18, + "country": "Poland", + "contact": { + "email": [ + "amcshirrie2i@hud.gov" + ], + "phone": "828 113 310" + }, + "languages": [], + "studies": { + "semester": 3, + "field": "Law", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 3, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 5, + 2, + 2, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 5, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Rance", + "surname": "Pecey", + "gender": "Male", + "age": 19, + "country": "Czech Republic", + "contact": { + "email": [ + "rpecey2j@hexun.com", + "rpecey2j@free.fr" + ], + "phone": "502 395 875" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 3, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 2, + 4, + 2, + 5, + 4 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 2, + 5, + 3 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 4, + 4, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 2 + ] + }, + { + "name": "english", + "grades": [ + 4, + 4, + 2 + ] + } + ] + } + }, + { + "name": "Dru", + "surname": "Taplow", + "gender": "Female", + "age": 21, + "country": "Poland", + "contact": { + "email": [ + "dtaplow2k@oakley.com", + "dtaplow2k@accuweather.com" + ], + "phone": "543 476 939" + }, + "languages": [ + "German" + ], + "studies": { + "semester": 2, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 4, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 3, + 3 + ] + } + ] + } + }, + { + "name": "Cassius", + "surname": "de Chastelain", + "gender": "Male", + "age": 20, + "country": "Lithuania", + "contact": { + "email": [ + "cdechastelain2l@squidoo.com", + "cdechastelain2l@ovh.net" + ], + "phone": "563 838 623" + }, + "languages": [ + "French" + ], + "studies": { + "semester": 1, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 2, + 5, + 4, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 4, + 4, + 3 + ] + }, + { + "name": "statistics", + "grades": [ + 5, + 4 + ] + } + ] + } + }, + { + "name": "Isiahi", + "surname": "Sterley", + "gender": "Male", + "age": 23, + "country": "Czech Republic", + "contact": { + "email": [ + "isterley2m@deliciousdays.com" + ], + "phone": "507 736 439" + }, + "languages": [], + "studies": { + "semester": 4, + "field": "Finance", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 2, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 2, + 5, + 3, + 4, + 3 + ] + } + ] + } + }, + { + "name": "Glenn", + "surname": "Eastham", + "gender": "Male", + "age": 19, + "country": "Poland", + "contact": { + "email": [ + "geastham2n@wp.com", + "geastham2n@chicagotribune.com" + ], + "phone": "638 741 471" + }, + "languages": [ + "French" + ], + "studies": { + "semester": 3, + "field": "Applied Informatics", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5, + 4, + 2, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 5, + 5, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 2, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 3, + 3, + 5, + 4 + ] + }, + { + "name": "english", + "grades": [ + 2, + 3, + 5 + ] + } + ] + } + }, + { + "name": "Jeanine", + "surname": "Vanyashin", + "gender": "Female", + "age": 23, + "country": "Poland", + "contact": { + "email": [ + "jvanyashin2o@rakuten.co.jp", + "jvanyashin2o@va.gov" + ], + "phone": "877 554 591" + }, + "languages": [ + "Ukrainian" + ], + "studies": { + "semester": 2, + "field": "Accounting", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 5, + 5 + ] + }, + { + "name": "mathematics", + "grades": [ + 5, + 5, + 5, + 3, + 2 + ] + }, + { + "name": "economics", + "grades": [ + 4, + 2, + 5, + 2, + 5 + ] + } + ] + } + }, + { + "name": "Vassily", + "surname": "Sloley", + "gender": "Male", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [], + "phone": "859 259 707" + }, + "languages": [ + "French", + "Ukrainian", + "English" + ], + "studies": { + "semester": 5, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 5, + 3, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 2 + ] + } + ] + } + }, + { + "name": "Ingar", + "surname": "Jagiello", + "gender": "Male", + "age": 24, + "country": "Czech Republic", + "contact": { + "email": [], + "phone": "501 533 408" + }, + "languages": [ + "English", + "Spanish", + "German" + ], + "studies": { + "semester": 6, + "field": "Finance", + "fulltime": "yes", + "courses": [ + { + "name": "programming", + "grades": [ + 3, + 2, + 2 + ] + }, + { + "name": "mathematics", + "grades": [ + 4, + 5 + ] + } + ] + } + }, + { + "name": "Nels", + "surname": "De Maria", + "gender": "Male", + "age": 23, + "country": "Ukraine", + "contact": { + "email": [ + "ndemaria2r@oakley.com", + "ndemaria2r@wix.com" + ], + "phone": "893 683 356" + }, + "languages": [ + "French", + "Ukrainian", + "English" + ], + "studies": { + "semester": 1, + "field": "Business Administration", + "fulltime": "no", + "courses": [ + { + "name": "programming", + "grades": [ + 4, + 3 + ] + }, + { + "name": "mathematics", + "grades": [ + 3, + 4, + 3, + 2, + 4 + ] + }, + { + "name": "economics", + "grades": [ + 3, + 5, + 5, + 5, + 2 + ] + }, + { + "name": "statistics", + "grades": [ + 2, + 4, + 5, + 4 + ] + } + ] + } + } +] \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/json.json b/08-DictionariesStacksAndQueues/json.json new file mode 100644 index 000000000..91ae474ba --- /dev/null +++ b/08-DictionariesStacksAndQueues/json.json @@ -0,0 +1,11 @@ +{ + "title": "Shutter Island", + "year": 2010, + "actor": { + "leading": "Leonardo DiCaprio", + "supporting": "Mark Ruffalo" + }, + "oscar": false, + "director": "Martin Scorsese", + "music": "Philip Stockton" +} \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie10.py b/08-DictionariesStacksAndQueues/zadanie10.py new file mode 100644 index 000000000..32a6befcc --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie10.py @@ -0,0 +1,7 @@ +import json + +with open("data.json") as file: + data = json.load(file) +for i in data: + for key,value in i.items(): + print(f"{key} : {value}") diff --git a/08-DictionariesStacksAndQueues/zadanie11.py b/08-DictionariesStacksAndQueues/zadanie11.py new file mode 100644 index 000000000..36e09d311 --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie11.py @@ -0,0 +1,11 @@ +import json +movie = { + "title":"Shutter Island", + "year": 2010 , + "actor":{"leading":"Leonardo DiCaprio","supporting":"Mark Ruffalo"}, + "oscar": False, + "director": "Martin Scorsese", + "music":"Philip Stockton" +} +with open("json.json", "w") as file: + json.dump(movie, file, indent = 6) diff --git a/08-DictionariesStacksAndQueues/zadanie7.py b/08-DictionariesStacksAndQueues/zadanie7.py new file mode 100644 index 000000000..479c9b9b3 --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie7.py @@ -0,0 +1,18 @@ +person = { + "name": "Marek", + "surname": "Banach", + "age": 25, + "hobby": ["swimming","excursions"], + "married": True, + "phone":{"landline":"123444321","mobile":"777888999"} + } + +print(person) +print(person["name"]) +print(person["hobby"]) +person["surname"]="Nowak" +person["married"]= not person["married"] +person["gender"]="Male" +person["hobby"].append("bicycle") +person["phone"]["work"] = "313131444" +print(person) \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie8.py b/08-DictionariesStacksAndQueues/zadanie8.py new file mode 100644 index 000000000..42c48796c --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie8.py @@ -0,0 +1,10 @@ +mobile = { + "OS":"Android", + "color":"blue", + "batery":"4000mAh", + "RAM":"4GB", + "NFC":True, + "weight":"199.8g" +} +for key,value in mobile.items(): + print(f"{key} : {value}") diff --git a/08-DictionariesStacksAndQueues/zadanie9.py b/08-DictionariesStacksAndQueues/zadanie9.py new file mode 100644 index 000000000..c8eff2b8d --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie9.py @@ -0,0 +1,12 @@ +countries = [ + {"name":"Poland", "population":38000000}, + {"name":"England", "population":55980000}, + {"name":"France", "population":67750000}, + {"name":"Italy", "population":59110000}, + {"name":"Spain", "population":47420000} +] +i = 0 +print(F"COUNTRY POPULATION") +while i < len(countries): + print(f'{countries[i]["name"]:10}{countries[i]["population"]:8}') + i+=1 \ No newline at end of file From 83e65c4d42197abe26d6851347fd21c36e0873a8 Mon Sep 17 00:00:00 2001 From: GabrielaSocha <232490@student.uek.krakow.pl> Date: Wed, 29 Nov 2023 22:55:58 +0100 Subject: [PATCH 5/9] After class --- 07-FileHandling/30linesoftext.txt | 29 +++++++++++++++++ 07-FileHandling/GrainsAndBread.txt | 5 +++ 07-FileHandling/MeatAndFish.txt | 4 +++ 07-FileHandling/allproducts.txt | 9 ++++++ 07-FileHandling/copy.txt | 29 +++++++++++++++++ 07-FileHandling/copylines.txt | 29 +++++++++++++++++ 07-FileHandling/grades.txt | 2 ++ 07-FileHandling/integers1-50.txt | 50 +++++++++++++++++++++++++++++ 07-FileHandling/integers_power.txt | 10 ++++++ 07-FileHandling/integers_random.txt | 50 +++++++++++++++++++++++++++++ 07-FileHandling/randomtext.txt | 29 +++++++++++++++++ 07-FileHandling/studentslist.txt | 6 ++++ 07-FileHandling/zadanie15.py | 3 ++ 07-FileHandling/zadanie16.py | 6 ++++ 07-FileHandling/zadanie17.py | 13 ++++++++ 07-FileHandling/zadanie18.py | 4 +++ 07-FileHandling/zadanie19.py | 5 +++ 07-FileHandling/zadanie20.py | 8 +++++ 07-FileHandling/zadanie21.py | 3 ++ 07-FileHandling/zadanie22.py | 4 +++ 07-FileHandling/zadanie23.py | 3 ++ 07-FileHandling/zadanie24.py | 6 ++++ 07-FileHandling/zadanie25.py | 8 +++++ 07-FileHandling/zadanie26.py | 4 +++ 07-FileHandling/zadanie27.py | 5 +++ 07-FileHandling/zadanie28.py | 8 +++++ 07-FileHandling/zadanie29.py | 11 +++++++ 27 files changed, 343 insertions(+) create mode 100644 07-FileHandling/30linesoftext.txt create mode 100644 07-FileHandling/GrainsAndBread.txt create mode 100644 07-FileHandling/MeatAndFish.txt create mode 100644 07-FileHandling/allproducts.txt create mode 100644 07-FileHandling/copy.txt create mode 100644 07-FileHandling/copylines.txt create mode 100644 07-FileHandling/grades.txt create mode 100644 07-FileHandling/integers1-50.txt create mode 100644 07-FileHandling/integers_power.txt create mode 100644 07-FileHandling/integers_random.txt create mode 100644 07-FileHandling/randomtext.txt create mode 100644 07-FileHandling/studentslist.txt create mode 100644 07-FileHandling/zadanie15.py create mode 100644 07-FileHandling/zadanie16.py create mode 100644 07-FileHandling/zadanie17.py create mode 100644 07-FileHandling/zadanie18.py create mode 100644 07-FileHandling/zadanie19.py create mode 100644 07-FileHandling/zadanie20.py create mode 100644 07-FileHandling/zadanie21.py create mode 100644 07-FileHandling/zadanie22.py create mode 100644 07-FileHandling/zadanie23.py create mode 100644 07-FileHandling/zadanie24.py create mode 100644 07-FileHandling/zadanie25.py create mode 100644 07-FileHandling/zadanie26.py create mode 100644 07-FileHandling/zadanie27.py create mode 100644 07-FileHandling/zadanie28.py create mode 100644 07-FileHandling/zadanie29.py diff --git a/07-FileHandling/30linesoftext.txt b/07-FileHandling/30linesoftext.txt new file mode 100644 index 000000000..1af870ff3 --- /dev/null +++ b/07-FileHandling/30linesoftext.txt @@ -0,0 +1,29 @@ +The quick brown fox jumps over the lazy dog. +A journey of a thousand miles begins with a single step. +All that glitters is not gold. +Actions speak louder than words. +Beauty is in the eye of the beholder. +Cry over spilled milk. +Don't count your chickens before they hatch. +Every cloud has a silver lining. +Fortune favors the bold. +Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. +Haste makes waste. +If the shoe fits, wear it. +Jump on the bandwagon. +Kill two birds with one stone. +Let sleeping dogs lie. +Make hay while the sun shines. +Necessity is the mother of invention. +Out of the frying pan and into the fire. +Practice makes perfect. +Quality over quantity. +Rome wasn't built in a day. +Silence is golden. +The early bird catches the worm. +To be or not to be, that is the question. +Under the weather. +Variety is the spice of life. +When in Rome, do as the Romans do. +You can't judge a book by its cover. +Zeal without knowledge is a runaway horse. diff --git a/07-FileHandling/GrainsAndBread.txt b/07-FileHandling/GrainsAndBread.txt new file mode 100644 index 000000000..5d3c02afa --- /dev/null +++ b/07-FileHandling/GrainsAndBread.txt @@ -0,0 +1,5 @@ +Bread +Rice +All purpose flour +Breakfast cereal +Pasta \ No newline at end of file diff --git a/07-FileHandling/MeatAndFish.txt b/07-FileHandling/MeatAndFish.txt new file mode 100644 index 000000000..eced066b3 --- /dev/null +++ b/07-FileHandling/MeatAndFish.txt @@ -0,0 +1,4 @@ +Skinless white meat +Tuna fish +Luncheon meat +Lean cuts of red meat \ No newline at end of file diff --git a/07-FileHandling/allproducts.txt b/07-FileHandling/allproducts.txt new file mode 100644 index 000000000..1a760c3fb --- /dev/null +++ b/07-FileHandling/allproducts.txt @@ -0,0 +1,9 @@ +Skinless white meat +Tuna fish +Luncheon meat +Lean cuts of red meat +Bread +Rice +All purpose flour +Breakfast cereal +Pasta \ No newline at end of file diff --git a/07-FileHandling/copy.txt b/07-FileHandling/copy.txt new file mode 100644 index 000000000..1af870ff3 --- /dev/null +++ b/07-FileHandling/copy.txt @@ -0,0 +1,29 @@ +The quick brown fox jumps over the lazy dog. +A journey of a thousand miles begins with a single step. +All that glitters is not gold. +Actions speak louder than words. +Beauty is in the eye of the beholder. +Cry over spilled milk. +Don't count your chickens before they hatch. +Every cloud has a silver lining. +Fortune favors the bold. +Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. +Haste makes waste. +If the shoe fits, wear it. +Jump on the bandwagon. +Kill two birds with one stone. +Let sleeping dogs lie. +Make hay while the sun shines. +Necessity is the mother of invention. +Out of the frying pan and into the fire. +Practice makes perfect. +Quality over quantity. +Rome wasn't built in a day. +Silence is golden. +The early bird catches the worm. +To be or not to be, that is the question. +Under the weather. +Variety is the spice of life. +When in Rome, do as the Romans do. +You can't judge a book by its cover. +Zeal without knowledge is a runaway horse. diff --git a/07-FileHandling/copylines.txt b/07-FileHandling/copylines.txt new file mode 100644 index 000000000..1af870ff3 --- /dev/null +++ b/07-FileHandling/copylines.txt @@ -0,0 +1,29 @@ +The quick brown fox jumps over the lazy dog. +A journey of a thousand miles begins with a single step. +All that glitters is not gold. +Actions speak louder than words. +Beauty is in the eye of the beholder. +Cry over spilled milk. +Don't count your chickens before they hatch. +Every cloud has a silver lining. +Fortune favors the bold. +Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. +Haste makes waste. +If the shoe fits, wear it. +Jump on the bandwagon. +Kill two birds with one stone. +Let sleeping dogs lie. +Make hay while the sun shines. +Necessity is the mother of invention. +Out of the frying pan and into the fire. +Practice makes perfect. +Quality over quantity. +Rome wasn't built in a day. +Silence is golden. +The early bird catches the worm. +To be or not to be, that is the question. +Under the weather. +Variety is the spice of life. +When in Rome, do as the Romans do. +You can't judge a book by its cover. +Zeal without knowledge is a runaway horse. diff --git a/07-FileHandling/grades.txt b/07-FileHandling/grades.txt new file mode 100644 index 000000000..922b63789 --- /dev/null +++ b/07-FileHandling/grades.txt @@ -0,0 +1,2 @@ +Name: Peter +Grades: 3.5, 4.0, 5.0, 4.5, 3.5, 3.0, 5.0 \ No newline at end of file diff --git a/07-FileHandling/integers1-50.txt b/07-FileHandling/integers1-50.txt new file mode 100644 index 000000000..96cc55885 --- /dev/null +++ b/07-FileHandling/integers1-50.txt @@ -0,0 +1,50 @@ +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 diff --git a/07-FileHandling/integers_power.txt b/07-FileHandling/integers_power.txt new file mode 100644 index 000000000..cbc2032f1 --- /dev/null +++ b/07-FileHandling/integers_power.txt @@ -0,0 +1,10 @@ +1,1,1 +2,4,8 +3,9,27 +4,16,64 +5,25,125 +6,36,216 +7,49,343 +8,64,512 +9,81,729 +10,100,1000 diff --git a/07-FileHandling/integers_random.txt b/07-FileHandling/integers_random.txt new file mode 100644 index 000000000..10658a105 --- /dev/null +++ b/07-FileHandling/integers_random.txt @@ -0,0 +1,50 @@ +253 +612 +653 +440 +780 +543 +319 +630 +691 +103 +950 +318 +412 +935 +752 +607 +856 +829 +317 +994 +928 +148 +952 +701 +303 +701 +819 +939 +151 +475 +577 +130 +794 +440 +701 +581 +627 +799 +243 +784 +512 +115 +987 +803 +984 +901 +935 +176 +168 +298 diff --git a/07-FileHandling/randomtext.txt b/07-FileHandling/randomtext.txt new file mode 100644 index 000000000..1af870ff3 --- /dev/null +++ b/07-FileHandling/randomtext.txt @@ -0,0 +1,29 @@ +The quick brown fox jumps over the lazy dog. +A journey of a thousand miles begins with a single step. +All that glitters is not gold. +Actions speak louder than words. +Beauty is in the eye of the beholder. +Cry over spilled milk. +Don't count your chickens before they hatch. +Every cloud has a silver lining. +Fortune favors the bold. +Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. +Haste makes waste. +If the shoe fits, wear it. +Jump on the bandwagon. +Kill two birds with one stone. +Let sleeping dogs lie. +Make hay while the sun shines. +Necessity is the mother of invention. +Out of the frying pan and into the fire. +Practice makes perfect. +Quality over quantity. +Rome wasn't built in a day. +Silence is golden. +The early bird catches the worm. +To be or not to be, that is the question. +Under the weather. +Variety is the spice of life. +When in Rome, do as the Romans do. +You can't judge a book by its cover. +Zeal without knowledge is a runaway horse. diff --git a/07-FileHandling/studentslist.txt b/07-FileHandling/studentslist.txt new file mode 100644 index 000000000..41ffbffef --- /dev/null +++ b/07-FileHandling/studentslist.txt @@ -0,0 +1,6 @@ +first_name,last_name,age,gender,email +Decca,Blackstone,52,Male,dblackstone0@time.com +Elena,Rechert,27,Female,erechert1@ucoz.com +Bibbye,Norree,26,Female,bnorree2@reddit.com +Alasdair,McCoole,53,Male,amccoole3@foxnews.com +Hogan,Hatrey,26,Male,hhatrey4@zimbio.com \ No newline at end of file diff --git a/07-FileHandling/zadanie15.py b/07-FileHandling/zadanie15.py new file mode 100644 index 000000000..f43667b7a --- /dev/null +++ b/07-FileHandling/zadanie15.py @@ -0,0 +1,3 @@ +with open("shopping.txt", "r") as f: + for line in f: + print(line, end="") \ No newline at end of file diff --git a/07-FileHandling/zadanie16.py b/07-FileHandling/zadanie16.py new file mode 100644 index 000000000..4d629534b --- /dev/null +++ b/07-FileHandling/zadanie16.py @@ -0,0 +1,6 @@ +f = str(input("File name: ")) +count = 0 +with open(f,"r") as f: + for line in f: + count+=1 +print(f"Number of lines: {count}") \ No newline at end of file diff --git a/07-FileHandling/zadanie17.py b/07-FileHandling/zadanie17.py new file mode 100644 index 000000000..b08d07da9 --- /dev/null +++ b/07-FileHandling/zadanie17.py @@ -0,0 +1,13 @@ +with open("30linesoftext.txt", 'r') as file: + lines = file.readlines() + +total_lines = len(lines) +current_line = 0 + +while current_line < total_lines: + for i in range(5): + if current_line < total_lines: + print(lines[current_line].strip()) + current_line += 1 + + input("Press Enter to continue...") \ No newline at end of file diff --git a/07-FileHandling/zadanie18.py b/07-FileHandling/zadanie18.py new file mode 100644 index 000000000..2979452b0 --- /dev/null +++ b/07-FileHandling/zadanie18.py @@ -0,0 +1,4 @@ +with open("30linesoftext.txt", "r")as m: + f = m.read() +with open("copy.txt", "w") as a: + a.write(f) \ No newline at end of file diff --git a/07-FileHandling/zadanie19.py b/07-FileHandling/zadanie19.py new file mode 100644 index 000000000..723fb6792 --- /dev/null +++ b/07-FileHandling/zadanie19.py @@ -0,0 +1,5 @@ +with open("30linesoftext.txt", "r") as f: + lines = f.readlines() +with open("copylines.txt", "w")as m: + for i in range(len(lines)): + m.write(lines[i]) \ No newline at end of file diff --git a/07-FileHandling/zadanie20.py b/07-FileHandling/zadanie20.py new file mode 100644 index 000000000..5c8ca78b8 --- /dev/null +++ b/07-FileHandling/zadanie20.py @@ -0,0 +1,8 @@ +with open("MeatAndFish.txt", "r") as m: + f = m.read() +with open("GrainsAndBread.txt", "r") as a: + b = a.read() +with open("allproducts.txt", "w")as c: + c.write(f) + c.write("\n") + c.write(b) diff --git a/07-FileHandling/zadanie21.py b/07-FileHandling/zadanie21.py new file mode 100644 index 000000000..c141cab9a --- /dev/null +++ b/07-FileHandling/zadanie21.py @@ -0,0 +1,3 @@ +with open("integers1-50.txt", "w")as f: + for i in range(1, 51): + f.write(str(i)+"\n") \ No newline at end of file diff --git a/07-FileHandling/zadanie22.py b/07-FileHandling/zadanie22.py new file mode 100644 index 000000000..2303a46fc --- /dev/null +++ b/07-FileHandling/zadanie22.py @@ -0,0 +1,4 @@ +import random +with open("integers_random.txt", "w")as f: + for i in range(50): + f.write(str(random.randint(100,999))+"\n") \ No newline at end of file diff --git a/07-FileHandling/zadanie23.py b/07-FileHandling/zadanie23.py new file mode 100644 index 000000000..beb98b28f --- /dev/null +++ b/07-FileHandling/zadanie23.py @@ -0,0 +1,3 @@ +with open("integers_power.txt", "w")as f: + for i in range(1, 11): + f.write(str(i)+","+str(i**2)+","+str(i**3)+"\n") \ No newline at end of file diff --git a/07-FileHandling/zadanie24.py b/07-FileHandling/zadanie24.py new file mode 100644 index 000000000..c8bd2e26c --- /dev/null +++ b/07-FileHandling/zadanie24.py @@ -0,0 +1,6 @@ +import csv +with open("studentslist.txt", mode='r') as file: + reader = csv.DictReader(file) + for row in reader: + if int(row['age']) < 30: + print(f"{row['first_name']:8}{row['last_name']:8}{row['email']}") \ No newline at end of file diff --git a/07-FileHandling/zadanie25.py b/07-FileHandling/zadanie25.py new file mode 100644 index 000000000..c736a7f4b --- /dev/null +++ b/07-FileHandling/zadanie25.py @@ -0,0 +1,8 @@ +import re + +message = "Tuesday: 22C, Wednesday: 21C, Thursday: 26C " +temperatures = re.findall("([1-9]{2})C",message) +sum = 0 +for i in temperatures: + sum+=int(i) +print(f"Average tempersture: {sum/len(temperatures)}") \ No newline at end of file diff --git a/07-FileHandling/zadanie26.py b/07-FileHandling/zadanie26.py new file mode 100644 index 000000000..c7a98700b --- /dev/null +++ b/07-FileHandling/zadanie26.py @@ -0,0 +1,4 @@ +import re +message = "To be, or not to be, that is the question" +vowels = re.findall("[aeiouy]", message) +print(f"Number of vowel: {len(vowels)}") \ No newline at end of file diff --git a/07-FileHandling/zadanie27.py b/07-FileHandling/zadanie27.py new file mode 100644 index 000000000..47e5fcaa8 --- /dev/null +++ b/07-FileHandling/zadanie27.py @@ -0,0 +1,5 @@ +import re +message = "To be, or not to be, that is the question" +words = re.findall(r"\b\w+\b", message) +print(words) +print(f"The number of words in the text is: {len(words)}") \ No newline at end of file diff --git a/07-FileHandling/zadanie28.py b/07-FileHandling/zadanie28.py new file mode 100644 index 000000000..6bd2a797d --- /dev/null +++ b/07-FileHandling/zadanie28.py @@ -0,0 +1,8 @@ +import re +with open('randomtext.txt', "r") as file: + for line in file: + line = line.rstrip() + x = re.findall(r'\b\w+\b', line) + for i in x: + if len(i) >=6: + print(i) \ No newline at end of file diff --git a/07-FileHandling/zadanie29.py b/07-FileHandling/zadanie29.py new file mode 100644 index 000000000..55afc2b9c --- /dev/null +++ b/07-FileHandling/zadanie29.py @@ -0,0 +1,11 @@ +import re +with open("grades.txt", "r") as file: + lines = file.read() + x = re.findall("[0-9].[0-9]",lines) + sum= 0 + for i in x: + i = float(i) + sum+=i +print(f"Arithmetic mean of student’s grades: {round(sum/len(x), 2)}") + + \ No newline at end of file From 8b90485fdd5bd42b079984dab65ad33cc090f758 Mon Sep 17 00:00:00 2001 From: GabrielaSocha <232490@student.uek.krakow.pl> Date: Sun, 3 Dec 2023 22:30:46 +0100 Subject: [PATCH 6/9] After Class --- 08-DictionariesStacksAndQueues/ICAO.txt | 26 + .../__pycache__/my_queue.cpython-312.pyc | Bin 0 -> 913 bytes .../__pycache__/stack.cpython-312.pyc | Bin 0 -> 996 bytes 08-DictionariesStacksAndQueues/euro.json | 10 + 08-DictionariesStacksAndQueues/limited.json | 2502 +++++++++++++++++ 08-DictionariesStacksAndQueues/my_queue.py | 18 + 08-DictionariesStacksAndQueues/products.csv | 5 + 08-DictionariesStacksAndQueues/products.json | 22 + 08-DictionariesStacksAndQueues/stack.py | 27 + 08-DictionariesStacksAndQueues/students.json | 500 ++++ 08-DictionariesStacksAndQueues/test.py | 1 + 08-DictionariesStacksAndQueues/zadanie10.py | 5 +- 08-DictionariesStacksAndQueues/zadanie12.py | 12 + 08-DictionariesStacksAndQueues/zadanie14.py | 9 + 08-DictionariesStacksAndQueues/zadanie15.py | 14 + 08-DictionariesStacksAndQueues/zadanie16.py | 38 + 08-DictionariesStacksAndQueues/zadanie17.py | 35 + 08-DictionariesStacksAndQueues/zadanie18.py | 32 + 08-DictionariesStacksAndQueues/zadanie19.py | 14 + 08-DictionariesStacksAndQueues/zadanie20.py | 7 + 08-DictionariesStacksAndQueues/zadanie21.py | 9 + 08-DictionariesStacksAndQueues/zadanie23.py | 14 + 08-DictionariesStacksAndQueues/zadanie24.py | 30 + 08-DictionariesStacksAndQueues/zadanie25.py | 32 + 08-DictionariesStacksAndQueues/zadanie26.py | 15 + 25 files changed, 3375 insertions(+), 2 deletions(-) create mode 100644 08-DictionariesStacksAndQueues/ICAO.txt create mode 100644 08-DictionariesStacksAndQueues/__pycache__/my_queue.cpython-312.pyc create mode 100644 08-DictionariesStacksAndQueues/__pycache__/stack.cpython-312.pyc create mode 100644 08-DictionariesStacksAndQueues/euro.json create mode 100644 08-DictionariesStacksAndQueues/limited.json create mode 100644 08-DictionariesStacksAndQueues/my_queue.py create mode 100644 08-DictionariesStacksAndQueues/products.csv create mode 100644 08-DictionariesStacksAndQueues/products.json create mode 100644 08-DictionariesStacksAndQueues/stack.py create mode 100644 08-DictionariesStacksAndQueues/students.json create mode 100644 08-DictionariesStacksAndQueues/test.py create mode 100644 08-DictionariesStacksAndQueues/zadanie12.py create mode 100644 08-DictionariesStacksAndQueues/zadanie14.py create mode 100644 08-DictionariesStacksAndQueues/zadanie15.py create mode 100644 08-DictionariesStacksAndQueues/zadanie16.py create mode 100644 08-DictionariesStacksAndQueues/zadanie17.py create mode 100644 08-DictionariesStacksAndQueues/zadanie18.py create mode 100644 08-DictionariesStacksAndQueues/zadanie19.py create mode 100644 08-DictionariesStacksAndQueues/zadanie20.py create mode 100644 08-DictionariesStacksAndQueues/zadanie21.py create mode 100644 08-DictionariesStacksAndQueues/zadanie23.py create mode 100644 08-DictionariesStacksAndQueues/zadanie24.py create mode 100644 08-DictionariesStacksAndQueues/zadanie25.py create mode 100644 08-DictionariesStacksAndQueues/zadanie26.py diff --git a/08-DictionariesStacksAndQueues/ICAO.txt b/08-DictionariesStacksAndQueues/ICAO.txt new file mode 100644 index 000000000..c0ca9f8be --- /dev/null +++ b/08-DictionariesStacksAndQueues/ICAO.txt @@ -0,0 +1,26 @@ +A Alfa +B Bravo +C Charlie +D Delta +E Echo +F Foxtrot +G Golf +H Hotel +I India +J Juliett +K Kilo +L Lima +M Mike +N November +O Oscar +P Papa +Q Quebec +R Romeo +S Sierra +T Tango +U Uniform +V Victor +W Whiskey +X Xray +Y Yankee +Z Zulu diff --git a/08-DictionariesStacksAndQueues/__pycache__/my_queue.cpython-312.pyc b/08-DictionariesStacksAndQueues/__pycache__/my_queue.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0a76d3644f1e67d159fc4446745a2cd4c25add2f GIT binary patch literal 913 zcmZuv&ubGw6rS0gO*T!^v^25BV(CfTgGFx=L{S1FmVg8=Wu=7dAloFnrqLMI7>;Y*B{-YK{h|J31f>nPqgccudkKC*DYM1GFWwgPu#WOHL=bl!WAj zHZ3hOUJm$xN4d5T+;c1%8L!&C0aqBfe*U;qx1T94mE98Z4G;X+zTM!e8~DN&;9fOWx9i%1BPl1MHCzD}3C1xA~>^ zjV;GuAsvKFF8X^2mLn2e^nN;tP_;nIf_IGUHN730_1waqwdQa1S$br;YMb{(5K0Dy zNEg01A+i8(nMXt3;VIt*&~k9p3IOmeE)DCWO7(Mi5FRfc?w*;eKPpQ};{TanhqPJd zQ@$B9hjwoe(ju}5q3}=i9`_PfvI2%FCs{@np#(=EG2}Bp930k<7Z2{Av8(^`!0vF0 zaRUH&0H)F)&!N;?5}-Gc+5H$+*o-HeHtvnYcuPyiW(ete0jv#k1Kv-!CYztDM6Vsn zD-e!-sA~YgccC^W)Tr*Wky+k%J{AAyp#5Tn504V^P0L7o$32nQW7;;BxipV+^KRdF p20eaHE`t|$L#+WoMM}S$b9=^^QMxkDFnj&`4{{TycERCl7pa^T%;toUi7_5wn^&;^X;42_uhQ(&HEOQM+xBd*9!YX z3HgPa0I*l+XW+9>*2pSx$Xl{X9SR(BLcp4%0qdS_8pXgLgS6r5FQ`}-&lEQB&joCg z_Ar(bj~vmw8S)M3+QqUzVRO!^j!Avvxm~F5|ahYC6}wtlRASOmdd@rJzwW_xh}$x6PHW?HAqK~ykB{< zvU~N1KHG;AQbY<60t0L4KLpw*?pf7s*dt`hMIVI?Bd|u_z^?$c3e03`zQH!R>j@op zzQ$|(h=>T-ViIX8pg0(E1_(69rdxMA$FvBc4$u8eUQr?Ev|@Ipbsmgyts{j& z=N($UK}dm^p?nvd;p=M^R#lP&UOXl!hFhc*EIAE?f)cIzPWIqZ^TDw`_rDZugp$$# zuFm$;1JwD$f)JT7zop8Lxc9)y$ACo5 literal 0 HcmV?d00001 diff --git a/08-DictionariesStacksAndQueues/euro.json b/08-DictionariesStacksAndQueues/euro.json new file mode 100644 index 000000000..d5b729602 --- /dev/null +++ b/08-DictionariesStacksAndQueues/euro.json @@ -0,0 +1,10 @@ +[{"no":"224/C/NBP/2023","effectiveDate":"2023-11-20","bid":4.3408,"ask":4.4284}, +{"no":"225/C/NBP/2023","effectiveDate":"2023-11-21","bid":4.3170,"ask":4.4042}, +{"no":"226/C/NBP/2023","effectiveDate":"2023-11-22","bid":4.3242,"ask":4.4116}, +{"no":"227/C/NBP/2023","effectiveDate":"2023-11-23","bid":4.3299,"ask":4.4173}, +{"no":"228/C/NBP/2023","effectiveDate":"2023-11-24","bid":4.3269,"ask":4.4143}, +{"no":"229/C/NBP/2023","effectiveDate":"2023-11-27","bid":4.3202,"ask":4.4074}, +{"no":"230/C/NBP/2023","effectiveDate":"2023-11-28","bid":4.3104,"ask":4.3974}, +{"no":"231/C/NBP/2023","effectiveDate":"2023-11-29","bid":4.2983,"ask":4.3851}, +{"no":"232/C/NBP/2023","effectiveDate":"2023-11-30","bid":4.2895,"ask":4.3761}, +{"no":"233/C/NBP/2023","effectiveDate":"2023-12-01","bid":4.3136,"ask":4.4008}] \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/limited.json b/08-DictionariesStacksAndQueues/limited.json new file mode 100644 index 000000000..e7ae4ea91 --- /dev/null +++ b/08-DictionariesStacksAndQueues/limited.json @@ -0,0 +1,2502 @@ +[ + { + "first name": "Curt", + "last name": "Andriuzzi", + "student id": 352815 + }, + { + "first name": "Brian", + "last name": "Eyres", + "student id": 278737 + }, + { + "first name": "Faustine", + "last name": "Challener", + "student id": 608400 + }, + { + "first name": "Kendricks", + "last name": "Gerhold", + "student id": 783008 + }, + { + "first name": "Sabine", + "last name": "Merit", + "student id": 231261 + }, + { + "first name": "Timmy", + "last name": "Brian", + "student id": 136173 + }, + { + "first name": "Mela", + "last name": "Ramet", + "student id": 766437 + }, + { + "first name": "Garald", + "last name": "Kensy", + "student id": 276883 + }, + { + "first name": "Brandy", + "last name": "Gorries", + "student id": 703012 + }, + { + "first name": "Foster", + "last name": "Platt", + "student id": 309176 + }, + { + "first name": "Vanda", + "last name": "Longmaid", + "student id": 108988 + }, + { + "first name": "Kermy", + "last name": "Goby", + "student id": 182281 + }, + { + "first name": "Sibylla", + "last name": "Floweth", + "student id": 468613 + }, + { + "first name": "Alyosha", + "last name": "Sheere", + "student id": 879234 + }, + { + "first name": "Farah", + "last name": "McGillacoell", + "student id": 635175 + }, + { + "first name": "Stanislaus", + "last name": "Heinl", + "student id": 531577 + }, + { + "first name": "Rena", + "last name": "McPheat", + "student id": 682635 + }, + { + "first name": "Bartram", + "last name": "Harring", + "student id": 144705 + }, + { + "first name": "Graham", + "last name": "Perceval", + "student id": 441496 + }, + { + "first name": "Alexina", + "last name": "Labat", + "student id": 704423 + }, + { + "first name": "Chauncey", + "last name": "Gower", + "student id": 427645 + }, + { + "first name": "Abby", + "last name": "Toppes", + "student id": 247582 + }, + { + "first name": "Christophorus", + "last name": "Kerwin", + "student id": 425850 + }, + { + "first name": "Bancroft", + "last name": "Garoghan", + "student id": 661842 + }, + { + "first name": "Gene", + "last name": "Yukhtin", + "student id": 741347 + }, + { + "first name": "Dallas", + "last name": "Fishbourne", + "student id": 746704 + }, + { + "first name": "Ibrahim", + "last name": "Wrench", + "student id": 773871 + }, + { + "first name": "Nicolas", + "last name": "Mulcaster", + "student id": 112155 + }, + { + "first name": "Cindy", + "last name": "Jindrak", + "student id": 553760 + }, + { + "first name": "Sampson", + "last name": "De Robertis", + "student id": 311142 + }, + { + "first name": "Cherice", + "last name": "Rowes", + "student id": 267299 + }, + { + "first name": "Falito", + "last name": "Howe", + "student id": 883569 + }, + { + "first name": "Jeremy", + "last name": "Grayshon", + "student id": 928554 + }, + { + "first name": "Humfrey", + "last name": "Caulier", + "student id": 462777 + }, + { + "first name": "Darin", + "last name": "Arson", + "student id": 862274 + }, + { + "first name": "Kirstin", + "last name": "Dearn", + "student id": 511081 + }, + { + "first name": "Welby", + "last name": "Cope", + "student id": 351583 + }, + { + "first name": "Chandler", + "last name": "Mc Caghan", + "student id": 968814 + }, + { + "first name": "Edan", + "last name": "Truter", + "student id": 637986 + }, + { + "first name": "Alvera", + "last name": "Dorwood", + "student id": 774925 + }, + { + "first name": "Cassie", + "last name": "Rawet", + "student id": 297522 + }, + { + "first name": "Bethany", + "last name": "Turgoose", + "student id": 710393 + }, + { + "first name": "Kathie", + "last name": "Edgell", + "student id": 430071 + }, + { + "first name": "Kip", + "last name": "Solesbury", + "student id": 226271 + }, + { + "first name": "Doralynne", + "last name": "Macewan", + "student id": 452683 + }, + { + "first name": "Dianemarie", + "last name": "Weaben", + "student id": 355968 + }, + { + "first name": "Valenka", + "last name": "Daulton", + "student id": 165270 + }, + { + "first name": "Palm", + "last name": "Tinklin", + "student id": 611319 + }, + { + "first name": "Marney", + "last name": "Echelle", + "student id": 307398 + }, + { + "first name": "Katina", + "last name": "Devita", + "student id": 636534 + }, + { + "first name": "Ulick", + "last name": "Amos", + "student id": 880178 + }, + { + "first name": "Danit", + "last name": "O'Dreain", + "student id": 100285 + }, + { + "first name": "Lydia", + "last name": "Cypler", + "student id": 443312 + }, + { + "first name": "Kiah", + "last name": "O'Clery", + "student id": 182449 + }, + { + "first name": "Cameron", + "last name": "MattiCCI", + "student id": 821598 + }, + { + "first name": "Daniella", + "last name": "M'Chirrie", + "student id": 973251 + }, + { + "first name": "Alberto", + "last name": "McCurtain", + "student id": 453631 + }, + { + "first name": "Wallace", + "last name": "Powles", + "student id": 465018 + }, + { + "first name": "Stormie", + "last name": "Creelman", + "student id": 482321 + }, + { + "first name": "Patrick", + "last name": "Osmon", + "student id": 509541 + }, + { + "first name": "Patricio", + "last name": "Igoe", + "student id": 564929 + }, + { + "first name": "Darcy", + "last name": "Crosham", + "student id": 207499 + }, + { + "first name": "Nancey", + "last name": "Dwelley", + "student id": 895459 + }, + { + "first name": "Ardisj", + "last name": "Rein", + "student id": 946998 + }, + { + "first name": "Ruttger", + "last name": "Rehorek", + "student id": 453744 + }, + { + "first name": "Taddeusz", + "last name": "Peller", + "student id": 400239 + }, + { + "first name": "Etan", + "last name": "MacPadene", + "student id": 968543 + }, + { + "first name": "Joan", + "last name": "Love", + "student id": 811948 + }, + { + "first name": "Natalya", + "last name": "Simeonov", + "student id": 677429 + }, + { + "first name": "Tammi", + "last name": "Yukhnev", + "student id": 341924 + }, + { + "first name": "Hesther", + "last name": "Ruslin", + "student id": 257156 + }, + { + "first name": "Madalena", + "last name": "Tremontana", + "student id": 413392 + }, + { + "first name": "Pierson", + "last name": "Eton", + "student id": 212063 + }, + { + "first name": "Basilio", + "last name": "Vials", + "student id": 385954 + }, + { + "first name": "Malva", + "last name": "Szymon", + "student id": 746178 + }, + { + "first name": "Basile", + "last name": "Fawdrie", + "student id": 607869 + }, + { + "first name": "Lindy", + "last name": "Tulloch", + "student id": 721536 + }, + { + "first name": "Jeri", + "last name": "Gann", + "student id": 910683 + }, + { + "first name": "Monty", + "last name": "Hirtzmann", + "student id": 473388 + }, + { + "first name": "Morse", + "last name": "Nuss", + "student id": 626626 + }, + { + "first name": "Jens", + "last name": "Staterfield", + "student id": 554892 + }, + { + "first name": "Tamarah", + "last name": "Joslin", + "student id": 880712 + }, + { + "first name": "Willy", + "last name": "Halle", + "student id": 839784 + }, + { + "first name": "Nerti", + "last name": "Espie", + "student id": 803416 + }, + { + "first name": "Karrie", + "last name": "Stuehmeyer", + "student id": 789492 + }, + { + "first name": "Zondra", + "last name": "Campe", + "student id": 784916 + }, + { + "first name": "Ancell", + "last name": "Karpman", + "student id": 552371 + }, + { + "first name": "Denver", + "last name": "Sinnott", + "student id": 660091 + }, + { + "first name": "Kennedy", + "last name": "Franckton", + "student id": 380197 + }, + { + "first name": "Emma", + "last name": "Cragoe", + "student id": 111223 + }, + { + "first name": "Cass", + "last name": "Christoffe", + "student id": 543551 + }, + { + "first name": "Gradey", + "last name": "Sturridge", + "student id": 704028 + }, + { + "first name": "Brnaba", + "last name": "MacLucais", + "student id": 391990 + }, + { + "first name": "Rodolphe", + "last name": "Tunney", + "student id": 256033 + }, + { + "first name": "Barrie", + "last name": "Lofts", + "student id": 628199 + }, + { + "first name": "Emyle", + "last name": "Gohier", + "student id": 745270 + }, + { + "first name": "Edmund", + "last name": "Chasier", + "student id": 461319 + }, + { + "first name": "Tony", + "last name": "Scholfield", + "student id": 187274 + }, + { + "first name": "Jacenta", + "last name": "Hambric", + "student id": 660142 + }, + { + "first name": "Somerset", + "last name": "Leopard", + "student id": 699158 + }, + { + "first name": "Ellwood", + "last name": "Fellon", + "student id": 125910 + }, + { + "first name": "Brita", + "last name": "Jelk", + "student id": 692205 + }, + { + "first name": "Catharine", + "last name": "Comport", + "student id": 638564 + }, + { + "first name": "Kayne", + "last name": "Bester", + "student id": 501339 + }, + { + "first name": "Thorn", + "last name": "Udden", + "student id": 358565 + }, + { + "first name": "Muffin", + "last name": "Pyper", + "student id": 828533 + }, + { + "first name": "Amity", + "last name": "Josephy", + "student id": 525175 + }, + { + "first name": "Alon", + "last name": "Karlmann", + "student id": 569545 + }, + { + "first name": "Fanya", + "last name": "Danzig", + "student id": 957393 + }, + { + "first name": "Justina", + "last name": "Esherwood", + "student id": 481037 + }, + { + "first name": "Eustacia", + "last name": "Brunetti", + "student id": 132003 + }, + { + "first name": "Lisha", + "last name": "Cabane", + "student id": 996397 + }, + { + "first name": "Ginger", + "last name": "Netting", + "student id": 160397 + }, + { + "first name": "Sayre", + "last name": "Gabriely", + "student id": 760753 + }, + { + "first name": "Blake", + "last name": "Follett", + "student id": 101064 + }, + { + "first name": "Elenore", + "last name": "Harby", + "student id": 538289 + }, + { + "first name": "Merrel", + "last name": "de Bullion", + "student id": 275606 + }, + { + "first name": "Aloysius", + "last name": "Pickle", + "student id": 412064 + }, + { + "first name": "Lotti", + "last name": "Keely", + "student id": 120262 + }, + { + "first name": "Jess", + "last name": "Rapin", + "student id": 609691 + }, + { + "first name": "Sigrid", + "last name": "Duckhouse", + "student id": 624129 + }, + { + "first name": "Quent", + "last name": "Snook", + "student id": 374020 + }, + { + "first name": "Arda", + "last name": "Darben", + "student id": 371743 + }, + { + "first name": "Caren", + "last name": "Bolsteridge", + "student id": 610698 + }, + { + "first name": "Rochester", + "last name": "Wiggans", + "student id": 112278 + }, + { + "first name": "Euell", + "last name": "Taw", + "student id": 443486 + }, + { + "first name": "Hadria", + "last name": "Cardwell", + "student id": 581967 + }, + { + "first name": "Dionis", + "last name": "Peet", + "student id": 229856 + }, + { + "first name": "Yves", + "last name": "Oldale", + "student id": 406857 + }, + { + "first name": "Tremayne", + "last name": "Dagg", + "student id": 472353 + }, + { + "first name": "Clem", + "last name": "Gallichiccio", + "student id": 185069 + }, + { + "first name": "Rosa", + "last name": "Jancey", + "student id": 944595 + }, + { + "first name": "Estrellita", + "last name": "Adamowitz", + "student id": 303943 + }, + { + "first name": "Giralda", + "last name": "McReath", + "student id": 641798 + }, + { + "first name": "Jeri", + "last name": "Dalrymple", + "student id": 163445 + }, + { + "first name": "Zulema", + "last name": "Huett", + "student id": 656820 + }, + { + "first name": "Kali", + "last name": "Stratford", + "student id": 117870 + }, + { + "first name": "Marleah", + "last name": "Doody", + "student id": 262750 + }, + { + "first name": "Cammie", + "last name": "Jelly", + "student id": 296022 + }, + { + "first name": "Melania", + "last name": "De Filippis", + "student id": 773548 + }, + { + "first name": "Zabrina", + "last name": "Cherry", + "student id": 418924 + }, + { + "first name": "Ario", + "last name": "Maus", + "student id": 107860 + }, + { + "first name": "Zebulen", + "last name": "Spataro", + "student id": 422766 + }, + { + "first name": "Gothart", + "last name": "Shipway", + "student id": 715964 + }, + { + "first name": "Hernando", + "last name": "Surman-Wells", + "student id": 845062 + }, + { + "first name": "Hollis", + "last name": "Heaker", + "student id": 586113 + }, + { + "first name": "Lorinda", + "last name": "Purves", + "student id": 856545 + }, + { + "first name": "Urbain", + "last name": "Washbrook", + "student id": 520913 + }, + { + "first name": "Nelli", + "last name": "Dale", + "student id": 312927 + }, + { + "first name": "Beniamino", + "last name": "Haycraft", + "student id": 789944 + }, + { + "first name": "Maynord", + "last name": "Flores", + "student id": 252686 + }, + { + "first name": "Vlad", + "last name": "Manifould", + "student id": 250812 + }, + { + "first name": "Ruby", + "last name": "Pietzker", + "student id": 253248 + }, + { + "first name": "Temp", + "last name": "Scare", + "student id": 295517 + }, + { + "first name": "Martainn", + "last name": "Quilligan", + "student id": 287343 + }, + { + "first name": "Marlo", + "last name": "Parnaby", + "student id": 521770 + }, + { + "first name": "Kit", + "last name": "Shephard", + "student id": 643568 + }, + { + "first name": "Devinne", + "last name": "Yurtsev", + "student id": 360460 + }, + { + "first name": "D'arcy", + "last name": "O'Sirin", + "student id": 646449 + }, + { + "first name": "Aguistin", + "last name": "Hutchence", + "student id": 638145 + }, + { + "first name": "Jonie", + "last name": "Sampey", + "student id": 643169 + }, + { + "first name": "Norris", + "last name": "Ackerman", + "student id": 676980 + }, + { + "first name": "Pat", + "last name": "Ogan", + "student id": 266149 + }, + { + "first name": "Brenda", + "last name": "Cornford", + "student id": 947773 + }, + { + "first name": "Merrily", + "last name": "Arlidge", + "student id": 720394 + }, + { + "first name": "Jamill", + "last name": "Spurr", + "student id": 790484 + }, + { + "first name": "Geneva", + "last name": "Badham", + "student id": 879338 + }, + { + "first name": "Tammie", + "last name": "Hearl", + "student id": 486389 + }, + { + "first name": "Dunstan", + "last name": "Kalinsky", + "student id": 793299 + }, + { + "first name": "Cosmo", + "last name": "Vannacci", + "student id": 699775 + }, + { + "first name": "Liliane", + "last name": "Fleury", + "student id": 523486 + }, + { + "first name": "Roz", + "last name": "Pietron", + "student id": 475978 + }, + { + "first name": "Adela", + "last name": "Sakins", + "student id": 762614 + }, + { + "first name": "Langston", + "last name": "McLauchlin", + "student id": 238460 + }, + { + "first name": "Weider", + "last name": "de'-Ancy Willis", + "student id": 605202 + }, + { + "first name": "Deedee", + "last name": "Vellender", + "student id": 931526 + }, + { + "first name": "Stuart", + "last name": "Valiant", + "student id": 244705 + }, + { + "first name": "Rudiger", + "last name": "MacCahey", + "student id": 247490 + }, + { + "first name": "Mariel", + "last name": "Perkins", + "student id": 881437 + }, + { + "first name": "Taylor", + "last name": "Cash", + "student id": 289069 + }, + { + "first name": "Aubree", + "last name": "Jest", + "student id": 500768 + }, + { + "first name": "Terri", + "last name": "Rohlfs", + "student id": 248136 + }, + { + "first name": "Adam", + "last name": "Hogben", + "student id": 793006 + }, + { + "first name": "Niles", + "last name": "Howard - Gater", + "student id": 940186 + }, + { + "first name": "Faunie", + "last name": "Demeter", + "student id": 357136 + }, + { + "first name": "Rebecca", + "last name": "Neighbour", + "student id": 530741 + }, + { + "first name": "Bernardo", + "last name": "Billie", + "student id": 395342 + }, + { + "first name": "Jock", + "last name": "Berthomieu", + "student id": 440120 + }, + { + "first name": "Reeba", + "last name": "Chidley", + "student id": 168810 + }, + { + "first name": "Stormy", + "last name": "Fullylove", + "student id": 712184 + }, + { + "first name": "Emili", + "last name": "Searjeant", + "student id": 338897 + }, + { + "first name": "Candy", + "last name": "Agney", + "student id": 313487 + }, + { + "first name": "Ty", + "last name": "Fishbourn", + "student id": 770042 + }, + { + "first name": "Staci", + "last name": "Ramel", + "student id": 788972 + }, + { + "first name": "Farleigh", + "last name": "Byham", + "student id": 529451 + }, + { + "first name": "Harli", + "last name": "Jeffels", + "student id": 267890 + }, + { + "first name": "Gerald", + "last name": "Tweede", + "student id": 253618 + }, + { + "first name": "Margaux", + "last name": "Malia", + "student id": 699454 + }, + { + "first name": "Hadley", + "last name": "Yandell", + "student id": 149770 + }, + { + "first name": "Lucy", + "last name": "Quick", + "student id": 523604 + }, + { + "first name": "Milton", + "last name": "Damp", + "student id": 617073 + }, + { + "first name": "Tyrone", + "last name": "Honnan", + "student id": 236896 + }, + { + "first name": "Edi", + "last name": "McMaster", + "student id": 981713 + }, + { + "first name": "Daffie", + "last name": "Jennins", + "student id": 766389 + }, + { + "first name": "Meade", + "last name": "Huckett", + "student id": 107576 + }, + { + "first name": "Page", + "last name": "Quelch", + "student id": 703385 + }, + { + "first name": "Ashia", + "last name": "Friskey", + "student id": 304043 + }, + { + "first name": "Thoma", + "last name": "Coultas", + "student id": 114733 + }, + { + "first name": "Bear", + "last name": "Gibbett", + "student id": 259518 + }, + { + "first name": "Baxie", + "last name": "Chestnutt", + "student id": 163963 + }, + { + "first name": "Emili", + "last name": "Pilsworth", + "student id": 460053 + }, + { + "first name": "Kesley", + "last name": "Huck", + "student id": 234727 + }, + { + "first name": "Roma", + "last name": "Adran", + "student id": 765058 + }, + { + "first name": "Derril", + "last name": "Beckmann", + "student id": 968804 + }, + { + "first name": "Rosmunda", + "last name": "Heninghem", + "student id": 122304 + }, + { + "first name": "Freida", + "last name": "Baelde", + "student id": 632651 + }, + { + "first name": "Fara", + "last name": "Nevin", + "student id": 154661 + }, + { + "first name": "My", + "last name": "Boshard", + "student id": 488636 + }, + { + "first name": "Ranee", + "last name": "Phythien", + "student id": 192288 + }, + { + "first name": "Woodman", + "last name": "Brasier", + "student id": 503452 + }, + { + "first name": "Archambault", + "last name": "Skellington", + "student id": 778661 + }, + { + "first name": "Rosalia", + "last name": "Fogg", + "student id": 260848 + }, + { + "first name": "Mella", + "last name": "Sinderland", + "student id": 558810 + }, + { + "first name": "Christine", + "last name": "Dare", + "student id": 345863 + }, + { + "first name": "Alexia", + "last name": "McGurgan", + "student id": 790365 + }, + { + "first name": "Lothaire", + "last name": "Bowfin", + "student id": 137850 + }, + { + "first name": "Sherye", + "last name": "Bedo", + "student id": 371234 + }, + { + "first name": "Vincenty", + "last name": "Doel", + "student id": 989308 + }, + { + "first name": "Van", + "last name": "Ninotti", + "student id": 756305 + }, + { + "first name": "Lezley", + "last name": "Saladin", + "student id": 528904 + }, + { + "first name": "Dyna", + "last name": "Dowyer", + "student id": 733255 + }, + { + "first name": "Ty", + "last name": "Gong", + "student id": 241489 + }, + { + "first name": "Jacynth", + "last name": "Kornilyev", + "student id": 235959 + }, + { + "first name": "Joscelin", + "last name": "Swinfon", + "student id": 235871 + }, + { + "first name": "Dominik", + "last name": "Arbon", + "student id": 165182 + }, + { + "first name": "Nealon", + "last name": "Monahan", + "student id": 247841 + }, + { + "first name": "Kristine", + "last name": "Mansion", + "student id": 505252 + }, + { + "first name": "Phillipp", + "last name": "Welsby", + "student id": 566368 + }, + { + "first name": "Veriee", + "last name": "Spaughton", + "student id": 706636 + }, + { + "first name": "Monroe", + "last name": "Ponton", + "student id": 444248 + }, + { + "first name": "Zebedee", + "last name": "Barkshire", + "student id": 157397 + }, + { + "first name": "Abie", + "last name": "Tomkinson", + "student id": 666111 + }, + { + "first name": "Novelia", + "last name": "Spadari", + "student id": 923666 + }, + { + "first name": "Lisetta", + "last name": "Beert", + "student id": 769075 + }, + { + "first name": "Marty", + "last name": "Newis", + "student id": 287740 + }, + { + "first name": "Benn", + "last name": "Rubinowitsch", + "student id": 777654 + }, + { + "first name": "Melisa", + "last name": "Boullen", + "student id": 483351 + }, + { + "first name": "Sisile", + "last name": "Borrie", + "student id": 271461 + }, + { + "first name": "Emelia", + "last name": "Westraw", + "student id": 826056 + }, + { + "first name": "Giordano", + "last name": "MacIllrick", + "student id": 583476 + }, + { + "first name": "Vincenz", + "last name": "Kubalek", + "student id": 771824 + }, + { + "first name": "Daffy", + "last name": "Lohden", + "student id": 645524 + }, + { + "first name": "Vonny", + "last name": "Sebrens", + "student id": 421443 + }, + { + "first name": "Corey", + "last name": "Fillgate", + "student id": 882224 + }, + { + "first name": "Didi", + "last name": "Lyddyard", + "student id": 853190 + }, + { + "first name": "Findley", + "last name": "Doylend", + "student id": 191727 + }, + { + "first name": "Chiarra", + "last name": "Ferie", + "student id": 682136 + }, + { + "first name": "Gothart", + "last name": "Kohrding", + "student id": 284356 + }, + { + "first name": "Elana", + "last name": "Skellion", + "student id": 764529 + }, + { + "first name": "Kacey", + "last name": "Burridge", + "student id": 920462 + }, + { + "first name": "Clarita", + "last name": "Cartner", + "student id": 305457 + }, + { + "first name": "Hartwell", + "last name": "Atwel", + "student id": 811321 + }, + { + "first name": "Joye", + "last name": "Acum", + "student id": 842199 + }, + { + "first name": "Ofella", + "last name": "Arthan", + "student id": 307482 + }, + { + "first name": "Annetta", + "last name": "Redington", + "student id": 369998 + }, + { + "first name": "Conant", + "last name": "Gingold", + "student id": 742892 + }, + { + "first name": "Ryon", + "last name": "Bonas", + "student id": 212276 + }, + { + "first name": "Arney", + "last name": "Bartolozzi", + "student id": 878538 + }, + { + "first name": "Claiborn", + "last name": "Butten", + "student id": 434364 + }, + { + "first name": "Erasmus", + "last name": "MacAughtrie", + "student id": 629333 + }, + { + "first name": "Deane", + "last name": "Faltin", + "student id": 516764 + }, + { + "first name": "Hilton", + "last name": "Saing", + "student id": 713426 + }, + { + "first name": "Dallon", + "last name": "Tickel", + "student id": 723061 + }, + { + "first name": "Roby", + "last name": "Foskew", + "student id": 338075 + }, + { + "first name": "Avigdor", + "last name": "Walsh", + "student id": 571890 + }, + { + "first name": "Merrily", + "last name": "Varey", + "student id": 578860 + }, + { + "first name": "Win", + "last name": "Rohlf", + "student id": 692646 + }, + { + "first name": "Dela", + "last name": "Pett", + "student id": 675081 + }, + { + "first name": "Aloysia", + "last name": "Cremin", + "student id": 779708 + }, + { + "first name": "Mellisent", + "last name": "Grinston", + "student id": 591400 + }, + { + "first name": "Wynne", + "last name": "Sollas", + "student id": 989899 + }, + { + "first name": "Demetris", + "last name": "Khristyukhin", + "student id": 337383 + }, + { + "first name": "Roosevelt", + "last name": "Espinay", + "student id": 647506 + }, + { + "first name": "Ophelia", + "last name": "Merriman", + "student id": 958149 + }, + { + "first name": "Cherise", + "last name": "Calvard", + "student id": 615186 + }, + { + "first name": "Galvin", + "last name": "Miquelet", + "student id": 998144 + }, + { + "first name": "Austine", + "last name": "Gabby", + "student id": 756788 + }, + { + "first name": "Elly", + "last name": "Kittless", + "student id": 801962 + }, + { + "first name": "Webb", + "last name": "Pengelly", + "student id": 378087 + }, + { + "first name": "Lucy", + "last name": "Cuttin", + "student id": 545616 + }, + { + "first name": "Marwin", + "last name": "Boarleyson", + "student id": 913421 + }, + { + "first name": "Nickolai", + "last name": "Hardisty", + "student id": 401555 + }, + { + "first name": "Hyacinthia", + "last name": "Halbert", + "student id": 570347 + }, + { + "first name": "Erasmus", + "last name": "Vain", + "student id": 159214 + }, + { + "first name": "Bunni", + "last name": "Grigolon", + "student id": 639726 + }, + { + "first name": "Cassie", + "last name": "Barenskie", + "student id": 816287 + }, + { + "first name": "Isidro", + "last name": "Borgesio", + "student id": 471002 + }, + { + "first name": "Jerrie", + "last name": "Rosell", + "student id": 252154 + }, + { + "first name": "Noelyn", + "last name": "Egdale", + "student id": 432247 + }, + { + "first name": "Stacee", + "last name": "Sloss", + "student id": 606900 + }, + { + "first name": "Bili", + "last name": "Inchan", + "student id": 413052 + }, + { + "first name": "Trisha", + "last name": "Piaggia", + "student id": 508653 + }, + { + "first name": "Deidre", + "last name": "Goldsworthy", + "student id": 384185 + }, + { + "first name": "Delores", + "last name": "Mewrcik", + "student id": 635218 + }, + { + "first name": "Donalt", + "last name": "Dunbavin", + "student id": 914018 + }, + { + "first name": "Yance", + "last name": "Branscombe", + "student id": 311803 + }, + { + "first name": "Cindelyn", + "last name": "Devonish", + "student id": 789461 + }, + { + "first name": "Bertrando", + "last name": "Bohike", + "student id": 420898 + }, + { + "first name": "Babara", + "last name": "Feasby", + "student id": 348723 + }, + { + "first name": "Baudoin", + "last name": "Dalgarno", + "student id": 426747 + }, + { + "first name": "Sheffie", + "last name": "Mooreed", + "student id": 187763 + }, + { + "first name": "Winni", + "last name": "Bruhn", + "student id": 666812 + }, + { + "first name": "Marius", + "last name": "Fewings", + "student id": 997751 + }, + { + "first name": "Lock", + "last name": "Carbery", + "student id": 415421 + }, + { + "first name": "Elfreda", + "last name": "Bourgaize", + "student id": 140441 + }, + { + "first name": "Maynord", + "last name": "Sancto", + "student id": 902574 + }, + { + "first name": "Cora", + "last name": "Highman", + "student id": 462277 + }, + { + "first name": "Wrennie", + "last name": "Tomas", + "student id": 346114 + }, + { + "first name": "Coral", + "last name": "Purver", + "student id": 134462 + }, + { + "first name": "Burk", + "last name": "Luckett", + "student id": 338462 + }, + { + "first name": "Katleen", + "last name": "Sygrove", + "student id": 634338 + }, + { + "first name": "Mandel", + "last name": "Drewe", + "student id": 581078 + }, + { + "first name": "Trace", + "last name": "Lidgate", + "student id": 467973 + }, + { + "first name": "Reynard", + "last name": "Gent", + "student id": 760262 + }, + { + "first name": "Jonah", + "last name": "Rozier", + "student id": 525787 + }, + { + "first name": "Yurik", + "last name": "Hayzer", + "student id": 113544 + }, + { + "first name": "Baryram", + "last name": "Furniss", + "student id": 387084 + }, + { + "first name": "Farr", + "last name": "Maty", + "student id": 227647 + }, + { + "first name": "Monica", + "last name": "Maccraw", + "student id": 139621 + }, + { + "first name": "Wenonah", + "last name": "MacIlraith", + "student id": 382246 + }, + { + "first name": "Kinny", + "last name": "Spleving", + "student id": 256943 + }, + { + "first name": "Neville", + "last name": "Bliss", + "student id": 157822 + }, + { + "first name": "Bryant", + "last name": "Jackett", + "student id": 815524 + }, + { + "first name": "Nell", + "last name": "Van Dijk", + "student id": 308533 + }, + { + "first name": "Belita", + "last name": "Brockherst", + "student id": 737833 + }, + { + "first name": "Farra", + "last name": "Shelley", + "student id": 713769 + }, + { + "first name": "Merrilee", + "last name": "Blade", + "student id": 741245 + }, + { + "first name": "Godfree", + "last name": "Spry", + "student id": 288968 + }, + { + "first name": "Paolina", + "last name": "Wareing", + "student id": 549343 + }, + { + "first name": "Tanny", + "last name": "De Fries", + "student id": 686320 + }, + { + "first name": "Temp", + "last name": "Pinnere", + "student id": 336109 + }, + { + "first name": "Fidela", + "last name": "McClenan", + "student id": 310835 + }, + { + "first name": "Binnie", + "last name": "Fillingham", + "student id": 368476 + }, + { + "first name": "Ruprecht", + "last name": "Duddle", + "student id": 252594 + }, + { + "first name": "Phil", + "last name": "Peet", + "student id": 427190 + }, + { + "first name": "Carmella", + "last name": "Columbine", + "student id": 141042 + }, + { + "first name": "Lyndell", + "last name": "Caroline", + "student id": 105783 + }, + { + "first name": "Carlyn", + "last name": "Rennebeck", + "student id": 580862 + }, + { + "first name": "Nomi", + "last name": "McGauhy", + "student id": 497116 + }, + { + "first name": "Rancell", + "last name": "Toulch", + "student id": 689722 + }, + { + "first name": "Kial", + "last name": "Kertess", + "student id": 351682 + }, + { + "first name": "Gwendolin", + "last name": "Cattellion", + "student id": 566547 + }, + { + "first name": "Mommy", + "last name": "Winser", + "student id": 576867 + }, + { + "first name": "Garik", + "last name": "Stiven", + "student id": 173496 + }, + { + "first name": "Jorry", + "last name": "Fance", + "student id": 338315 + }, + { + "first name": "August", + "last name": "Scrowson", + "student id": 163785 + }, + { + "first name": "Ryley", + "last name": "Macknish", + "student id": 693453 + }, + { + "first name": "Trstram", + "last name": "Munks", + "student id": 904381 + }, + { + "first name": "Letta", + "last name": "Sex", + "student id": 646217 + }, + { + "first name": "Clementius", + "last name": "Rouby", + "student id": 701640 + }, + { + "first name": "Verina", + "last name": "Simony", + "student id": 666400 + }, + { + "first name": "Raffarty", + "last name": "Urling", + "student id": 932984 + }, + { + "first name": "Callie", + "last name": "Rodwell", + "student id": 605531 + }, + { + "first name": "Quinn", + "last name": "Cheevers", + "student id": 793076 + }, + { + "first name": "Edan", + "last name": "Ormiston", + "student id": 168344 + }, + { + "first name": "Addi", + "last name": "Arne", + "student id": 814533 + }, + { + "first name": "Omar", + "last name": "Eltone", + "student id": 712260 + }, + { + "first name": "Layney", + "last name": "Mattiassi", + "student id": 870747 + }, + { + "first name": "Schuyler", + "last name": "Iron", + "student id": 329889 + }, + { + "first name": "Kelley", + "last name": "Joselevitch", + "student id": 166317 + }, + { + "first name": "Kris", + "last name": "Dupoy", + "student id": 824954 + }, + { + "first name": "Shaughn", + "last name": "Skerm", + "student id": 646441 + }, + { + "first name": "Saundra", + "last name": "Wrotham", + "student id": 557566 + }, + { + "first name": "Cecile", + "last name": "Nudde", + "student id": 469889 + }, + { + "first name": "Whitney", + "last name": "Byrne", + "student id": 717199 + }, + { + "first name": "Maurie", + "last name": "Howitt", + "student id": 350369 + }, + { + "first name": "Keir", + "last name": "Wilsher", + "student id": 898477 + }, + { + "first name": "Nevile", + "last name": "Naire", + "student id": 685491 + }, + { + "first name": "Marilee", + "last name": "Archambault", + "student id": 292000 + }, + { + "first name": "Elsie", + "last name": "Hammarberg", + "student id": 801186 + }, + { + "first name": "Glendon", + "last name": "Culligan", + "student id": 459266 + }, + { + "first name": "Grazia", + "last name": "Copins", + "student id": 290147 + }, + { + "first name": "Alfonso", + "last name": "Bulfoot", + "student id": 555686 + }, + { + "first name": "Umberto", + "last name": "Speedy", + "student id": 643859 + }, + { + "first name": "Zaccaria", + "last name": "Rowler", + "student id": 360638 + }, + { + "first name": "Ashli", + "last name": "Moyne", + "student id": 179098 + }, + { + "first name": "Melisande", + "last name": "Dack", + "student id": 459435 + }, + { + "first name": "Adham", + "last name": "Monshall", + "student id": 421457 + }, + { + "first name": "Selig", + "last name": "MacCartair", + "student id": 585212 + }, + { + "first name": "Vanessa", + "last name": "Kingscote", + "student id": 980898 + }, + { + "first name": "Bertina", + "last name": "McKelvey", + "student id": 193680 + }, + { + "first name": "Reid", + "last name": "Coase", + "student id": 965254 + }, + { + "first name": "Nata", + "last name": "Gales", + "student id": 431420 + }, + { + "first name": "Mady", + "last name": "Sails", + "student id": 415788 + }, + { + "first name": "Aldus", + "last name": "Finding", + "student id": 824608 + }, + { + "first name": "Mala", + "last name": "Churchyard", + "student id": 918490 + }, + { + "first name": "Chico", + "last name": "Blainey", + "student id": 112776 + }, + { + "first name": "Fabien", + "last name": "Whitsun", + "student id": 993331 + }, + { + "first name": "Clayborne", + "last name": "Saward", + "student id": 898056 + }, + { + "first name": "Glenn", + "last name": "Marriott", + "student id": 381135 + }, + { + "first name": "Louie", + "last name": "Martineau", + "student id": 323801 + }, + { + "first name": "Siegfried", + "last name": "Clarson", + "student id": 608482 + }, + { + "first name": "Meredith", + "last name": "Santos", + "student id": 116661 + }, + { + "first name": "Benoite", + "last name": "Jaszczak", + "student id": 457371 + }, + { + "first name": "Ricca", + "last name": "Bastick", + "student id": 819621 + }, + { + "first name": "Brittne", + "last name": "Couth", + "student id": 559904 + }, + { + "first name": "Daria", + "last name": "Careswell", + "student id": 190633 + }, + { + "first name": "Cullan", + "last name": "Visco", + "student id": 819452 + }, + { + "first name": "Janaye", + "last name": "Odney", + "student id": 610559 + }, + { + "first name": "Roldan", + "last name": "Choffin", + "student id": 751142 + }, + { + "first name": "Stafani", + "last name": "Faustian", + "student id": 807493 + }, + { + "first name": "Briant", + "last name": "Ellsom", + "student id": 581394 + }, + { + "first name": "Benjamen", + "last name": "Gollop", + "student id": 692895 + }, + { + "first name": "Reta", + "last name": "Izen", + "student id": 125148 + }, + { + "first name": "Ignazio", + "last name": "Mattys", + "student id": 454438 + }, + { + "first name": "Marna", + "last name": "Papa", + "student id": 976981 + }, + { + "first name": "Francisco", + "last name": "Kohter", + "student id": 720104 + }, + { + "first name": "Farrel", + "last name": "Extill", + "student id": 158034 + }, + { + "first name": "Martha", + "last name": "Ridsdale", + "student id": 545016 + }, + { + "first name": "Wood", + "last name": "Laurentino", + "student id": 414416 + }, + { + "first name": "Huntley", + "last name": "Haborn", + "student id": 474681 + }, + { + "first name": "Priscella", + "last name": "Cresswell", + "student id": 174706 + }, + { + "first name": "Jenica", + "last name": "Chalke", + "student id": 682568 + }, + { + "first name": "Prentiss", + "last name": "Dawbery", + "student id": 177908 + }, + { + "first name": "Trever", + "last name": "Iacopo", + "student id": 572403 + }, + { + "first name": "Chandra", + "last name": "Albert", + "student id": 561481 + }, + { + "first name": "Dianne", + "last name": "Grouvel", + "student id": 805162 + }, + { + "first name": "Correna", + "last name": "Gradwell", + "student id": 516773 + }, + { + "first name": "Claude", + "last name": "Lomas", + "student id": 962821 + }, + { + "first name": "Isidore", + "last name": "Petri", + "student id": 474207 + }, + { + "first name": "Bordy", + "last name": "Tirrey", + "student id": 965392 + }, + { + "first name": "Kellen", + "last name": "Cleft", + "student id": 900226 + }, + { + "first name": "Aili", + "last name": "Wittrington", + "student id": 169226 + }, + { + "first name": "Roseline", + "last name": "Inett", + "student id": 740920 + }, + { + "first name": "Delila", + "last name": "Kuban", + "student id": 607574 + }, + { + "first name": "Idaline", + "last name": "Elliss", + "student id": 416535 + }, + { + "first name": "Mendy", + "last name": "Barzen", + "student id": 770569 + }, + { + "first name": "Sylas", + "last name": "Rase", + "student id": 864471 + }, + { + "first name": "Kris", + "last name": "Stonebridge", + "student id": 196549 + }, + { + "first name": "Vance", + "last name": "Necolds", + "student id": 809742 + }, + { + "first name": "Trina", + "last name": "Willatts", + "student id": 108082 + }, + { + "first name": "Aindrea", + "last name": "Keenlayside", + "student id": 520245 + }, + { + "first name": "Valentijn", + "last name": "Fidge", + "student id": 854099 + }, + { + "first name": "Nicolle", + "last name": "Marini", + "student id": 281127 + }, + { + "first name": "Zarah", + "last name": "Gorghetto", + "student id": 958445 + }, + { + "first name": "Allayne", + "last name": "Piddocke", + "student id": 407106 + }, + { + "first name": "Kevan", + "last name": "Enocksson", + "student id": 669967 + }, + { + "first name": "Ayn", + "last name": "Hammell", + "student id": 256671 + }, + { + "first name": "Vernen", + "last name": "Eldrett", + "student id": 412379 + }, + { + "first name": "Aurie", + "last name": "Addison", + "student id": 519094 + }, + { + "first name": "Raul", + "last name": "Boncore", + "student id": 314865 + }, + { + "first name": "Devinne", + "last name": "Wolstenholme", + "student id": 772478 + }, + { + "first name": "Karole", + "last name": "Jon", + "student id": 830067 + }, + { + "first name": "Marjory", + "last name": "Josephs", + "student id": 882052 + }, + { + "first name": "Gnni", + "last name": "Archdeacon", + "student id": 949064 + }, + { + "first name": "Kelby", + "last name": "Fishpool", + "student id": 586308 + }, + { + "first name": "Lorianne", + "last name": "Simkovich", + "student id": 514063 + }, + { + "first name": "Chiquia", + "last name": "Yurkiewicz", + "student id": 437934 + }, + { + "first name": "Constantino", + "last name": "Culverhouse", + "student id": 160304 + }, + { + "first name": "Rriocard", + "last name": "Fidilis", + "student id": 960192 + }, + { + "first name": "Hyacinth", + "last name": "Mityukov", + "student id": 562151 + }, + { + "first name": "Fletcher", + "last name": "Arnke", + "student id": 220111 + }, + { + "first name": "Caroline", + "last name": "Bock", + "student id": 158910 + }, + { + "first name": "Janine", + "last name": "Mcettrick", + "student id": 895549 + }, + { + "first name": "Trude", + "last name": "Bruff", + "student id": 500401 + }, + { + "first name": "Koo", + "last name": "Downes", + "student id": 247246 + }, + { + "first name": "Ingeberg", + "last name": "Estrella", + "student id": 976339 + }, + { + "first name": "Gustave", + "last name": "Peckitt", + "student id": 659616 + }, + { + "first name": "Rodolfo", + "last name": "Brookes", + "student id": 624723 + }, + { + "first name": "Lombard", + "last name": "Kenney", + "student id": 550017 + }, + { + "first name": "Sunshine", + "last name": "Merrywether", + "student id": 299862 + }, + { + "first name": "Briano", + "last name": "Callacher", + "student id": 389474 + }, + { + "first name": "Nevil", + "last name": "MacPaike", + "student id": 308261 + }, + { + "first name": "Jefferson", + "last name": "Frost", + "student id": 649315 + }, + { + "first name": "Hamilton", + "last name": "Moogan", + "student id": 710617 + }, + { + "first name": "Opal", + "last name": "Revington", + "student id": 628595 + }, + { + "first name": "Boyce", + "last name": "Dwyr", + "student id": 970235 + }, + { + "first name": "Nessie", + "last name": "Kyngdon", + "student id": 202089 + }, + { + "first name": "Marchall", + "last name": "Karchowski", + "student id": 646683 + }, + { + "first name": "Robbyn", + "last name": "Rodolphe", + "student id": 357045 + }, + { + "first name": "Carney", + "last name": "Skeech", + "student id": 770064 + }, + { + "first name": "Dukey", + "last name": "Bambra", + "student id": 444960 + }, + { + "first name": "Stafford", + "last name": "Rice", + "student id": 869546 + }, + { + "first name": "Julius", + "last name": "Dmitr", + "student id": 218247 + }, + { + "first name": "Shandra", + "last name": "Edmondson", + "student id": 885158 + }, + { + "first name": "Ruy", + "last name": "Malster", + "student id": 206867 + }, + { + "first name": "Benita", + "last name": "Pennrington", + "student id": 685772 + }, + { + "first name": "Chucho", + "last name": "Brind", + "student id": 256936 + }, + { + "first name": "Rick", + "last name": "Elkington", + "student id": 684251 + }, + { + "first name": "Verge", + "last name": "Bescoby", + "student id": 248925 + }, + { + "first name": "Reta", + "last name": "Chatfield", + "student id": 538268 + }, + { + "first name": "Cy", + "last name": "Cockshot", + "student id": 772858 + }, + { + "first name": "Sindee", + "last name": "Yarranton", + "student id": 324749 + }, + { + "first name": "Evin", + "last name": "Gladwish", + "student id": 142595 + }, + { + "first name": "Raynard", + "last name": "Rickerd", + "student id": 306674 + }, + { + "first name": "Delora", + "last name": "McGrory", + "student id": 692175 + }, + { + "first name": "Konstance", + "last name": "Hagerty", + "student id": 240240 + }, + { + "first name": "Geoffry", + "last name": "Alexandre", + "student id": 745094 + }, + { + "first name": "Leland", + "last name": "Asche", + "student id": 855794 + }, + { + "first name": "Philipa", + "last name": "Grimshaw", + "student id": 811210 + } +] \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/my_queue.py b/08-DictionariesStacksAndQueues/my_queue.py new file mode 100644 index 000000000..79db926b6 --- /dev/null +++ b/08-DictionariesStacksAndQueues/my_queue.py @@ -0,0 +1,18 @@ +queue = [] + +def enqueue(value): + queue.append(value) + +def dequeue(): + if not is_empty(): + return queue.pop(0) + else: + return None + +def is_empty(): + return len(queue) == 0 + +def display(): + for item in queue: + print(item) + print() diff --git a/08-DictionariesStacksAndQueues/products.csv b/08-DictionariesStacksAndQueues/products.csv new file mode 100644 index 000000000..7d04822b2 --- /dev/null +++ b/08-DictionariesStacksAndQueues/products.csv @@ -0,0 +1,5 @@ +Product,Quantity,Price +milk,8,4.25 +cheese,5,17.90 +bread,21,6.15 +juice,12,5.90 \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/products.json b/08-DictionariesStacksAndQueues/products.json new file mode 100644 index 000000000..d1ac0edf7 --- /dev/null +++ b/08-DictionariesStacksAndQueues/products.json @@ -0,0 +1,22 @@ +[ + { + "Product": "milk", + "Quantity": "8", + "Price": "4.25" + }, + { + "Product": "cheese", + "Quantity": "5", + "Price": "17.90" + }, + { + "Product": "bread", + "Quantity": "21", + "Price": "6.15" + }, + { + "Product": "juice", + "Quantity": "12", + "Price": "5.90" + } +] \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/stack.py b/08-DictionariesStacksAndQueues/stack.py new file mode 100644 index 000000000..e59e129d1 --- /dev/null +++ b/08-DictionariesStacksAndQueues/stack.py @@ -0,0 +1,27 @@ +##### +# Stack definition +## + +stack = [] + +# add value at the top of the stack +def push(value): + stack.append(value) + +# remove the topmost element of the stack +# and return its value +def pop(): + if not empty(): + return stack.pop() + else: + return None + +# return true if the stack is empty +def empty(): + return len(stack) == 0 + +# display stack +def display(): + for i in range(len(stack)-1,-1,-1): + print(stack[i]) + print() \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/students.json b/08-DictionariesStacksAndQueues/students.json new file mode 100644 index 000000000..14e852929 --- /dev/null +++ b/08-DictionariesStacksAndQueues/students.json @@ -0,0 +1,500 @@ +[{"name":"Curt","surname":"Andriuzzi","student_ID":352815,"gender":"Male","age":30,"year_of_study":3,"email":"candriuzzi0@etsy.com"}, +{"name":"Brian","surname":"Eyres","student_ID":278737,"gender":"Male","age":22,"year_of_study":5,"email":"beyres1@hubpages.com"}, +{"name":"Faustine","surname":"Challener","student_ID":608400,"gender":"Female","age":19,"year_of_study":4,"email":"fchallener2@state.tx.us"}, +{"name":"Kendricks","surname":"Gerhold","student_ID":783008,"gender":"Male","age":27,"year_of_study":4,"email":"kgerhold3@indiegogo.com"}, +{"name":"Sabine","surname":"Merit","student_ID":231261,"gender":"Female","age":21,"year_of_study":2,"email":"smerit4@census.gov"}, +{"name":"Timmy","surname":"Brian","student_ID":136173,"gender":"Male","age":30,"year_of_study":4,"email":"tbrian5@china.com.cn"}, +{"name":"Mela","surname":"Ramet","student_ID":766437,"gender":"Non-binary","age":30,"year_of_study":5,"email":"mramet6@1688.com"}, +{"name":"Garald","surname":"Kensy","student_ID":276883,"gender":"Male","age":20,"year_of_study":2,"email":"gkensy7@google.de"}, +{"name":"Brandy","surname":"Gorries","student_ID":703012,"gender":"Male","age":18,"year_of_study":1,"email":"bgorries8@netscape.com"}, +{"name":"Foster","surname":"Platt","student_ID":309176,"gender":"Male","age":26,"year_of_study":1,"email":"fplatt9@reference.com"}, +{"name":"Vanda","surname":"Longmaid","student_ID":108988,"gender":"Female","age":19,"year_of_study":2,"email":"vlongmaida@wufoo.com"}, +{"name":"Kermy","surname":"Goby","student_ID":182281,"gender":"Male","age":28,"year_of_study":2,"email":"kgobyb@nytimes.com"}, +{"name":"Sibylla","surname":"Floweth","student_ID":468613,"gender":"Female","age":27,"year_of_study":4,"email":"sflowethc@weather.com"}, +{"name":"Alyosha","surname":"Sheere","student_ID":879234,"gender":"Male","age":30,"year_of_study":2,"email":"asheered@tuttocitta.it"}, +{"name":"Farah","surname":"McGillacoell","student_ID":635175,"gender":"Female","age":22,"year_of_study":2,"email":"fmcgillacoelle@homestead.com"}, +{"name":"Stanislaus","surname":"Heinl","student_ID":531577,"gender":"Male","age":25,"year_of_study":5,"email":"sheinlf@geocities.jp"}, +{"name":"Rena","surname":"McPheat","student_ID":682635,"gender":"Female","age":28,"year_of_study":4,"email":"rmcpheatg@com.com"}, +{"name":"Bartram","surname":"Harring","student_ID":144705,"gender":"Male","age":25,"year_of_study":4,"email":"bharringh@squarespace.com"}, +{"name":"Graham","surname":"Perceval","student_ID":441496,"gender":"Male","age":28,"year_of_study":4,"email":"gpercevali@shop-pro.jp"}, +{"name":"Alexina","surname":"Labat","student_ID":704423,"gender":"Female","age":27,"year_of_study":2,"email":"alabatj@google.nl"}, +{"name":"Chauncey","surname":"Gower","student_ID":427645,"gender":"Male","age":18,"year_of_study":2,"email":"cgowerk@163.com"}, +{"name":"Abby","surname":"Toppes","student_ID":247582,"gender":"Male","age":19,"year_of_study":3,"email":"atoppesl@domainmarket.com"}, +{"name":"Christophorus","surname":"Kerwin","student_ID":425850,"gender":"Male","age":24,"year_of_study":1,"email":"ckerwinm@cdbaby.com"}, +{"name":"Bancroft","surname":"Garoghan","student_ID":661842,"gender":"Male","age":18,"year_of_study":4,"email":"bgaroghann@diigo.com"}, +{"name":"Gene","surname":"Yukhtin","student_ID":741347,"gender":"Male","age":28,"year_of_study":4,"email":"gyukhtino@csmonitor.com"}, +{"name":"Dallas","surname":"Fishbourne","student_ID":746704,"gender":"Female","age":27,"year_of_study":1,"email":"dfishbournep@nps.gov"}, +{"name":"Ibrahim","surname":"Wrench","student_ID":773871,"gender":"Male","age":27,"year_of_study":1,"email":"iwrenchq@yale.edu"}, +{"name":"Nicolas","surname":"Mulcaster","student_ID":112155,"gender":"Male","age":21,"year_of_study":3,"email":"nmulcasterr@php.net"}, +{"name":"Cindy","surname":"Jindrak","student_ID":553760,"gender":"Female","age":23,"year_of_study":3,"email":"cjindraks@hc360.com"}, +{"name":"Sampson","surname":"De Robertis","student_ID":311142,"gender":"Non-binary","age":27,"year_of_study":2,"email":"sderobertist@prnewswire.com"}, +{"name":"Cherice","surname":"Rowes","student_ID":267299,"gender":"Female","age":18,"year_of_study":3,"email":"crowesu@state.tx.us"}, +{"name":"Falito","surname":"Howe","student_ID":883569,"gender":"Male","age":23,"year_of_study":5,"email":"fhowev@msn.com"}, +{"name":"Jeremy","surname":"Grayshon","student_ID":928554,"gender":"Male","age":26,"year_of_study":3,"email":"jgrayshonw@reverbnation.com"}, +{"name":"Humfrey","surname":"Caulier","student_ID":462777,"gender":"Male","age":22,"year_of_study":2,"email":"hcaulierx@go.com"}, +{"name":"Darin","surname":"Arson","student_ID":862274,"gender":"Male","age":20,"year_of_study":3,"email":"darsony@boston.com"}, +{"name":"Kirstin","surname":"Dearn","student_ID":511081,"gender":"Female","age":19,"year_of_study":5,"email":"kdearnz@hatena.ne.jp"}, +{"name":"Welby","surname":"Cope","student_ID":351583,"gender":"Male","age":27,"year_of_study":5,"email":"wcope10@pen.io"}, +{"name":"Chandler","surname":"Mc Caghan","student_ID":968814,"gender":"Male","age":22,"year_of_study":2,"email":"cmccaghan11@upenn.edu"}, +{"name":"Edan","surname":"Truter","student_ID":637986,"gender":"Male","age":30,"year_of_study":1,"email":"etruter12@people.com.cn"}, +{"name":"Alvera","surname":"Dorwood","student_ID":774925,"gender":"Female","age":30,"year_of_study":1,"email":"adorwood13@mozilla.org"}, +{"name":"Cassie","surname":"Rawet","student_ID":297522,"gender":"Male","age":20,"year_of_study":1,"email":"crawet14@imdb.com"}, +{"name":"Bethany","surname":"Turgoose","student_ID":710393,"gender":"Female","age":19,"year_of_study":4,"email":"bturgoose15@ox.ac.uk"}, +{"name":"Kathie","surname":"Edgell","student_ID":430071,"gender":"Female","age":20,"year_of_study":3,"email":"kedgell16@yale.edu"}, +{"name":"Kip","surname":"Solesbury","student_ID":226271,"gender":"Female","age":25,"year_of_study":2,"email":"ksolesbury17@sohu.com"}, +{"name":"Doralynne","surname":"Macewan","student_ID":452683,"gender":"Female","age":25,"year_of_study":5,"email":"dmacewan18@cdbaby.com"}, +{"name":"Dianemarie","surname":"Weaben","student_ID":355968,"gender":"Female","age":28,"year_of_study":1,"email":"dweaben19@prlog.org"}, +{"name":"Valenka","surname":"Daulton","student_ID":165270,"gender":"Female","age":21,"year_of_study":1,"email":"vdaulton1a@psu.edu"}, +{"name":"Palm","surname":"Tinklin","student_ID":611319,"gender":"Male","age":28,"year_of_study":2,"email":"ptinklin1b@fda.gov"}, +{"name":"Marney","surname":"Echelle","student_ID":307398,"gender":"Polygender","age":24,"year_of_study":3,"email":"mechelle1c@flavors.me"}, +{"name":"Katina","surname":"Devita","student_ID":636534,"gender":"Female","age":19,"year_of_study":5,"email":"kdevita1d@twitpic.com"}, +{"name":"Ulick","surname":"Amos","student_ID":880178,"gender":"Male","age":24,"year_of_study":4,"email":"uamos1e@mashable.com"}, +{"name":"Danit","surname":"O'Dreain","student_ID":100285,"gender":"Female","age":26,"year_of_study":3,"email":"dodreain1f@cyberchimps.com"}, +{"name":"Lydia","surname":"Cypler","student_ID":443312,"gender":"Female","age":24,"year_of_study":2,"email":"lcypler1g@usda.gov"}, +{"name":"Kiah","surname":"O'Clery","student_ID":182449,"gender":"Female","age":20,"year_of_study":1,"email":"koclery1h@dmoz.org"}, +{"name":"Cameron","surname":"MattiCCI","student_ID":821598,"gender":"Male","age":30,"year_of_study":2,"email":"cmatticci1i@thetimes.co.uk"}, +{"name":"Daniella","surname":"M'Chirrie","student_ID":973251,"gender":"Female","age":22,"year_of_study":5,"email":"dmchirrie1j@exblog.jp"}, +{"name":"Alberto","surname":"McCurtain","student_ID":453631,"gender":"Male","age":20,"year_of_study":5,"email":"amccurtain1k@go.com"}, +{"name":"Wallace","surname":"Powles","student_ID":465018,"gender":"Male","age":24,"year_of_study":3,"email":"wpowles1l@jigsy.com"}, +{"name":"Stormie","surname":"Creelman","student_ID":482321,"gender":"Female","age":18,"year_of_study":2,"email":"screelman1m@hubpages.com"}, +{"name":"Patrick","surname":"Osmon","student_ID":509541,"gender":"Male","age":28,"year_of_study":2,"email":"posmon1n@nydailynews.com"}, +{"name":"Patricio","surname":"Igoe","student_ID":564929,"gender":"Genderfluid","age":27,"year_of_study":2,"email":"pigoe1o@desdev.cn"}, +{"name":"Darcy","surname":"Crosham","student_ID":207499,"gender":"Female","age":24,"year_of_study":3,"email":"dcrosham1p@pcworld.com"}, +{"name":"Nancey","surname":"Dwelley","student_ID":895459,"gender":"Female","age":21,"year_of_study":4,"email":"ndwelley1q@howstuffworks.com"}, +{"name":"Ardisj","surname":"Rein","student_ID":946998,"gender":"Female","age":26,"year_of_study":5,"email":"arein1r@ucoz.com"}, +{"name":"Ruttger","surname":"Rehorek","student_ID":453744,"gender":"Male","age":27,"year_of_study":3,"email":"rrehorek1s@examiner.com"}, +{"name":"Taddeusz","surname":"Peller","student_ID":400239,"gender":"Male","age":19,"year_of_study":3,"email":"tpeller1t@weebly.com"}, +{"name":"Etan","surname":"MacPadene","student_ID":968543,"gender":"Male","age":21,"year_of_study":5,"email":"emacpadene1u@facebook.com"}, +{"name":"Joan","surname":"Love","student_ID":811948,"gender":"Female","age":23,"year_of_study":2,"email":"jlove1v@europa.eu"}, +{"name":"Natalya","surname":"Simeonov","student_ID":677429,"gender":"Female","age":23,"year_of_study":4,"email":"nsimeonov1w@jiathis.com"}, +{"name":"Tammi","surname":"Yukhnev","student_ID":341924,"gender":"Female","age":24,"year_of_study":1,"email":"tyukhnev1x@eventbrite.com"}, +{"name":"Hesther","surname":"Ruslin","student_ID":257156,"gender":"Female","age":23,"year_of_study":5,"email":"hruslin1y@newsvine.com"}, +{"name":"Madalena","surname":"Tremontana","student_ID":413392,"gender":"Female","age":30,"year_of_study":5,"email":"mtremontana1z@usnews.com"}, +{"name":"Pierson","surname":"Eton","student_ID":212063,"gender":"Male","age":20,"year_of_study":1,"email":"peton20@angelfire.com"}, +{"name":"Basilio","surname":"Vials","student_ID":385954,"gender":"Male","age":23,"year_of_study":3,"email":"bvials21@macromedia.com"}, +{"name":"Malva","surname":"Szymon","student_ID":746178,"gender":"Female","age":18,"year_of_study":4,"email":"mszymon22@java.com"}, +{"name":"Basile","surname":"Fawdrie","student_ID":607869,"gender":"Male","age":18,"year_of_study":5,"email":"bfawdrie23@shareasale.com"}, +{"name":"Lindy","surname":"Tulloch","student_ID":721536,"gender":"Bigender","age":22,"year_of_study":5,"email":"ltulloch24@google.nl"}, +{"name":"Jeri","surname":"Gann","student_ID":910683,"gender":"Female","age":26,"year_of_study":4,"email":"jgann25@marketwatch.com"}, +{"name":"Monty","surname":"Hirtzmann","student_ID":473388,"gender":"Male","age":24,"year_of_study":2,"email":"mhirtzmann26@mapquest.com"}, +{"name":"Morse","surname":"Nuss","student_ID":626626,"gender":"Male","age":19,"year_of_study":1,"email":"mnuss27@nba.com"}, +{"name":"Jens","surname":"Staterfield","student_ID":554892,"gender":"Male","age":30,"year_of_study":3,"email":"jstaterfield28@sourceforge.net"}, +{"name":"Tamarah","surname":"Joslin","student_ID":880712,"gender":"Female","age":18,"year_of_study":4,"email":"tjoslin29@ocn.ne.jp"}, +{"name":"Willy","surname":"Halle","student_ID":839784,"gender":"Male","age":23,"year_of_study":5,"email":"whalle2a@aol.com"}, +{"name":"Nerti","surname":"Espie","student_ID":803416,"gender":"Polygender","age":19,"year_of_study":5,"email":"nespie2b@yellowpages.com"}, +{"name":"Karrie","surname":"Stuehmeyer","student_ID":789492,"gender":"Female","age":25,"year_of_study":4,"email":"kstuehmeyer2c@studiopress.com"}, +{"name":"Zondra","surname":"Campe","student_ID":784916,"gender":"Female","age":26,"year_of_study":5,"email":"zcampe2d@163.com"}, +{"name":"Ancell","surname":"Karpman","student_ID":552371,"gender":"Male","age":26,"year_of_study":4,"email":"akarpman2e@twitter.com"}, +{"name":"Denver","surname":"Sinnott","student_ID":660091,"gender":"Male","age":27,"year_of_study":4,"email":"dsinnott2f@delicious.com"}, +{"name":"Kennedy","surname":"Franckton","student_ID":380197,"gender":"Male","age":19,"year_of_study":1,"email":"kfranckton2g@ibm.com"}, +{"name":"Emma","surname":"Cragoe","student_ID":111223,"gender":"Female","age":23,"year_of_study":5,"email":"ecragoe2h@scribd.com"}, +{"name":"Cass","surname":"Christoffe","student_ID":543551,"gender":"Male","age":23,"year_of_study":4,"email":"cchristoffe2i@hostgator.com"}, +{"name":"Gradey","surname":"Sturridge","student_ID":704028,"gender":"Male","age":20,"year_of_study":2,"email":"gsturridge2j@google.it"}, +{"name":"Brnaba","surname":"MacLucais","student_ID":391990,"gender":"Male","age":22,"year_of_study":5,"email":"bmaclucais2k@harvard.edu"}, +{"name":"Rodolphe","surname":"Tunney","student_ID":256033,"gender":"Male","age":23,"year_of_study":5,"email":"rtunney2l@ifeng.com"}, +{"name":"Barrie","surname":"Lofts","student_ID":628199,"gender":"Female","age":20,"year_of_study":1,"email":"blofts2m@artisteer.com"}, +{"name":"Emyle","surname":"Gohier","student_ID":745270,"gender":"Female","age":19,"year_of_study":4,"email":"egohier2n@buzzfeed.com"}, +{"name":"Edmund","surname":"Chasier","student_ID":461319,"gender":"Male","age":27,"year_of_study":4,"email":"echasier2o@bluehost.com"}, +{"name":"Tony","surname":"Scholfield","student_ID":187274,"gender":"Female","age":25,"year_of_study":1,"email":"tscholfield2p@goo.gl"}, +{"name":"Jacenta","surname":"Hambric","student_ID":660142,"gender":"Female","age":23,"year_of_study":2,"email":"jhambric2q@irs.gov"}, +{"name":"Somerset","surname":"Leopard","student_ID":699158,"gender":"Male","age":29,"year_of_study":2,"email":"sleopard2r@comsenz.com"}, +{"name":"Ellwood","surname":"Fellon","student_ID":125910,"gender":"Male","age":28,"year_of_study":1,"email":"efellon2s@google.ca"}, +{"name":"Brita","surname":"Jelk","student_ID":692205,"gender":"Bigender","age":29,"year_of_study":4,"email":"bjelk2t@marriott.com"}, +{"name":"Catharine","surname":"Comport","student_ID":638564,"gender":"Female","age":29,"year_of_study":1,"email":"ccomport2u@blog.com"}, +{"name":"Kayne","surname":"Bester","student_ID":501339,"gender":"Male","age":20,"year_of_study":3,"email":"kbester2v@sina.com.cn"}, +{"name":"Thorn","surname":"Udden","student_ID":358565,"gender":"Male","age":20,"year_of_study":5,"email":"tudden2w@guardian.co.uk"}, +{"name":"Muffin","surname":"Pyper","student_ID":828533,"gender":"Female","age":20,"year_of_study":4,"email":"mpyper2x@mayoclinic.com"}, +{"name":"Amity","surname":"Josephy","student_ID":525175,"gender":"Female","age":25,"year_of_study":4,"email":"ajosephy2y@typepad.com"}, +{"name":"Alon","surname":"Karlmann","student_ID":569545,"gender":"Male","age":19,"year_of_study":1,"email":"akarlmann2z@psu.edu"}, +{"name":"Fanya","surname":"Danzig","student_ID":957393,"gender":"Female","age":22,"year_of_study":5,"email":"fdanzig30@techcrunch.com"}, +{"name":"Justina","surname":"Esherwood","student_ID":481037,"gender":"Female","age":28,"year_of_study":2,"email":"jesherwood31@feedburner.com"}, +{"name":"Eustacia","surname":"Brunetti","student_ID":132003,"gender":"Female","age":29,"year_of_study":2,"email":"ebrunetti32@goo.ne.jp"}, +{"name":"Lisha","surname":"Cabane","student_ID":996397,"gender":"Agender","age":20,"year_of_study":1,"email":"lcabane33@ucla.edu"}, +{"name":"Ginger","surname":"Netting","student_ID":160397,"gender":"Male","age":23,"year_of_study":2,"email":"gnetting34@mit.edu"}, +{"name":"Sayre","surname":"Gabriely","student_ID":760753,"gender":"Female","age":25,"year_of_study":1,"email":"sgabriely35@so-net.ne.jp"}, +{"name":"Blake","surname":"Follett","student_ID":101064,"gender":"Male","age":24,"year_of_study":1,"email":"bfollett36@washingtonpost.com"}, +{"name":"Elenore","surname":"Harby","student_ID":538289,"gender":"Female","age":24,"year_of_study":5,"email":"eharby37@sfgate.com"}, +{"name":"Merrel","surname":"de Bullion","student_ID":275606,"gender":"Male","age":27,"year_of_study":5,"email":"mdebullion38@gmpg.org"}, +{"name":"Aloysius","surname":"Pickle","student_ID":412064,"gender":"Male","age":19,"year_of_study":4,"email":"apickle39@desdev.cn"}, +{"name":"Lotti","surname":"Keely","student_ID":120262,"gender":"Female","age":29,"year_of_study":5,"email":"lkeely3a@ning.com"}, +{"name":"Jess","surname":"Rapin","student_ID":609691,"gender":"Non-binary","age":29,"year_of_study":2,"email":"jrapin3b@shinystat.com"}, +{"name":"Sigrid","surname":"Duckhouse","student_ID":624129,"gender":"Female","age":18,"year_of_study":3,"email":"sduckhouse3c@samsung.com"}, +{"name":"Quent","surname":"Snook","student_ID":374020,"gender":"Male","age":26,"year_of_study":4,"email":"qsnook3d@theatlantic.com"}, +{"name":"Arda","surname":"Darben","student_ID":371743,"gender":"Female","age":18,"year_of_study":4,"email":"adarben3e@desdev.cn"}, +{"name":"Caren","surname":"Bolsteridge","student_ID":610698,"gender":"Female","age":22,"year_of_study":3,"email":"cbolsteridge3f@google.de"}, +{"name":"Rochester","surname":"Wiggans","student_ID":112278,"gender":"Male","age":25,"year_of_study":5,"email":"rwiggans3g@un.org"}, +{"name":"Euell","surname":"Taw","student_ID":443486,"gender":"Male","age":21,"year_of_study":2,"email":"etaw3h@wikipedia.org"}, +{"name":"Hadria","surname":"Cardwell","student_ID":581967,"gender":"Female","age":27,"year_of_study":2,"email":"hcardwell3i@tuttocitta.it"}, +{"name":"Dionis","surname":"Peet","student_ID":229856,"gender":"Female","age":19,"year_of_study":3,"email":"dpeet3j@dell.com"}, +{"name":"Yves","surname":"Oldale","student_ID":406857,"gender":"Genderqueer","age":25,"year_of_study":2,"email":"yoldale3k@arizona.edu"}, +{"name":"Tremayne","surname":"Dagg","student_ID":472353,"gender":"Male","age":26,"year_of_study":3,"email":"tdagg3l@pagesperso-orange.fr"}, +{"name":"Clem","surname":"Gallichiccio","student_ID":185069,"gender":"Male","age":27,"year_of_study":1,"email":"cgallichiccio3m@washington.edu"}, +{"name":"Rosa","surname":"Jancey","student_ID":944595,"gender":"Female","age":18,"year_of_study":2,"email":"rjancey3n@cocolog-nifty.com"}, +{"name":"Estrellita","surname":"Adamowitz","student_ID":303943,"gender":"Female","age":21,"year_of_study":5,"email":"eadamowitz3o@epa.gov"}, +{"name":"Giralda","surname":"McReath","student_ID":641798,"gender":"Female","age":26,"year_of_study":3,"email":"gmcreath3p@desdev.cn"}, +{"name":"Jeri","surname":"Dalrymple","student_ID":163445,"gender":"Female","age":20,"year_of_study":4,"email":"jdalrymple3q@so-net.ne.jp"}, +{"name":"Zulema","surname":"Huett","student_ID":656820,"gender":"Female","age":28,"year_of_study":2,"email":"zhuett3r@wp.com"}, +{"name":"Kali","surname":"Stratford","student_ID":117870,"gender":"Female","age":19,"year_of_study":2,"email":"kstratford3s@elpais.com"}, +{"name":"Marleah","surname":"Doody","student_ID":262750,"gender":"Female","age":18,"year_of_study":4,"email":"mdoody3t@smh.com.au"}, +{"name":"Cammie","surname":"Jelly","student_ID":296022,"gender":"Female","age":28,"year_of_study":5,"email":"cjelly3u@yolasite.com"}, +{"name":"Melania","surname":"De Filippis","student_ID":773548,"gender":"Female","age":25,"year_of_study":1,"email":"mdefilippis3v@cdc.gov"}, +{"name":"Zabrina","surname":"Cherry","student_ID":418924,"gender":"Female","age":21,"year_of_study":3,"email":"zcherry3w@unicef.org"}, +{"name":"Ario","surname":"Maus","student_ID":107860,"gender":"Male","age":27,"year_of_study":2,"email":"amaus3x@ocn.ne.jp"}, +{"name":"Zebulen","surname":"Spataro","student_ID":422766,"gender":"Male","age":25,"year_of_study":1,"email":"zspataro3y@spiegel.de"}, +{"name":"Gothart","surname":"Shipway","student_ID":715964,"gender":"Male","age":18,"year_of_study":1,"email":"gshipway3z@dedecms.com"}, +{"name":"Hernando","surname":"Surman-Wells","student_ID":845062,"gender":"Male","age":23,"year_of_study":2,"email":"hsurmanwells40@godaddy.com"}, +{"name":"Hollis","surname":"Heaker","student_ID":586113,"gender":"Male","age":28,"year_of_study":3,"email":"hheaker41@imdb.com"}, +{"name":"Lorinda","surname":"Purves","student_ID":856545,"gender":"Female","age":21,"year_of_study":1,"email":"lpurves42@guardian.co.uk"}, +{"name":"Urbain","surname":"Washbrook","student_ID":520913,"gender":"Male","age":25,"year_of_study":5,"email":"uwashbrook43@g.co"}, +{"name":"Nelli","surname":"Dale","student_ID":312927,"gender":"Female","age":25,"year_of_study":1,"email":"ndale44@pen.io"}, +{"name":"Beniamino","surname":"Haycraft","student_ID":789944,"gender":"Male","age":22,"year_of_study":2,"email":"bhaycraft45@aboutads.info"}, +{"name":"Maynord","surname":"Flores","student_ID":252686,"gender":"Male","age":19,"year_of_study":1,"email":"mflores46@usatoday.com"}, +{"name":"Vlad","surname":"Manifould","student_ID":250812,"gender":"Male","age":24,"year_of_study":2,"email":"vmanifould47@sina.com.cn"}, +{"name":"Ruby","surname":"Pietzker","student_ID":253248,"gender":"Female","age":26,"year_of_study":4,"email":"rpietzker48@purevolume.com"}, +{"name":"Temp","surname":"Scare","student_ID":295517,"gender":"Male","age":20,"year_of_study":5,"email":"tscare49@alexa.com"}, +{"name":"Martainn","surname":"Quilligan","student_ID":287343,"gender":"Male","age":29,"year_of_study":1,"email":"mquilligan4a@disqus.com"}, +{"name":"Marlo","surname":"Parnaby","student_ID":521770,"gender":"Female","age":19,"year_of_study":1,"email":"mparnaby4b@cnbc.com"}, +{"name":"Kit","surname":"Shephard","student_ID":643568,"gender":"Male","age":26,"year_of_study":4,"email":"kshephard4c@homestead.com"}, +{"name":"Devinne","surname":"Yurtsev","student_ID":360460,"gender":"Female","age":20,"year_of_study":1,"email":"dyurtsev4d@pbs.org"}, +{"name":"D'arcy","surname":"O'Sirin","student_ID":646449,"gender":"Male","age":25,"year_of_study":1,"email":"dosirin4e@feedburner.com"}, +{"name":"Aguistin","surname":"Hutchence","student_ID":638145,"gender":"Male","age":21,"year_of_study":5,"email":"ahutchence4f@bigcartel.com"}, +{"name":"Jonie","surname":"Sampey","student_ID":643169,"gender":"Female","age":26,"year_of_study":1,"email":"jsampey4g@mashable.com"}, +{"name":"Norris","surname":"Ackerman","student_ID":676980,"gender":"Male","age":30,"year_of_study":1,"email":"nackerman4h@elpais.com"}, +{"name":"Pat","surname":"Ogan","student_ID":266149,"gender":"Polygender","age":25,"year_of_study":1,"email":"pogan4i@nsw.gov.au"}, +{"name":"Brenda","surname":"Cornford","student_ID":947773,"gender":"Female","age":18,"year_of_study":1,"email":"bcornford4j@netlog.com"}, +{"name":"Merrily","surname":"Arlidge","student_ID":720394,"gender":"Female","age":24,"year_of_study":4,"email":"marlidge4k@sohu.com"}, +{"name":"Jamill","surname":"Spurr","student_ID":790484,"gender":"Male","age":23,"year_of_study":4,"email":"jspurr4l@acquirethisname.com"}, +{"name":"Geneva","surname":"Badham","student_ID":879338,"gender":"Female","age":29,"year_of_study":5,"email":"gbadham4m@amazonaws.com"}, +{"name":"Tammie","surname":"Hearl","student_ID":486389,"gender":"Male","age":30,"year_of_study":4,"email":"thearl4n@soup.io"}, +{"name":"Dunstan","surname":"Kalinsky","student_ID":793299,"gender":"Male","age":27,"year_of_study":4,"email":"dkalinsky4o@sphinn.com"}, +{"name":"Cosmo","surname":"Vannacci","student_ID":699775,"gender":"Male","age":29,"year_of_study":3,"email":"cvannacci4p@comcast.net"}, +{"name":"Liliane","surname":"Fleury","student_ID":523486,"gender":"Female","age":27,"year_of_study":3,"email":"lfleury4q@disqus.com"}, +{"name":"Roz","surname":"Pietron","student_ID":475978,"gender":"Female","age":21,"year_of_study":5,"email":"rpietron4r@ebay.com"}, +{"name":"Adela","surname":"Sakins","student_ID":762614,"gender":"Female","age":19,"year_of_study":1,"email":"asakins4s@squarespace.com"}, +{"name":"Langston","surname":"McLauchlin","student_ID":238460,"gender":"Male","age":19,"year_of_study":2,"email":"lmclauchlin4t@xing.com"}, +{"name":"Weider","surname":"de'-Ancy Willis","student_ID":605202,"gender":"Male","age":23,"year_of_study":4,"email":"wdeancywillis4u@virginia.edu"}, +{"name":"Deedee","surname":"Vellender","student_ID":931526,"gender":"Female","age":25,"year_of_study":4,"email":"dvellender4v@macromedia.com"}, +{"name":"Stuart","surname":"Valiant","student_ID":244705,"gender":"Non-binary","age":25,"year_of_study":1,"email":"svaliant4w@nyu.edu"}, +{"name":"Rudiger","surname":"MacCahey","student_ID":247490,"gender":"Male","age":23,"year_of_study":2,"email":"rmaccahey4x@jugem.jp"}, +{"name":"Mariel","surname":"Perkins","student_ID":881437,"gender":"Female","age":23,"year_of_study":4,"email":"mperkins4y@usnews.com"}, +{"name":"Taylor","surname":"Cash","student_ID":289069,"gender":"Male","age":30,"year_of_study":2,"email":"tcash4z@123-reg.co.uk"}, +{"name":"Aubree","surname":"Jest","student_ID":500768,"gender":"Female","age":19,"year_of_study":5,"email":"ajest50@wisc.edu"}, +{"name":"Terri","surname":"Rohlfs","student_ID":248136,"gender":"Female","age":29,"year_of_study":2,"email":"trohlfs51@sfgate.com"}, +{"name":"Adam","surname":"Hogben","student_ID":793006,"gender":"Male","age":22,"year_of_study":2,"email":"ahogben52@nyu.edu"}, +{"name":"Niles","surname":"Howard - Gater","student_ID":940186,"gender":"Genderfluid","age":29,"year_of_study":3,"email":"nhowardgater53@indiatimes.com"}, +{"name":"Faunie","surname":"Demeter","student_ID":357136,"gender":"Female","age":25,"year_of_study":4,"email":"fdemeter54@privacy.gov.au"}, +{"name":"Rebecca","surname":"Neighbour","student_ID":530741,"gender":"Female","age":20,"year_of_study":2,"email":"rneighbour55@cocolog-nifty.com"}, +{"name":"Bernardo","surname":"Billie","student_ID":395342,"gender":"Male","age":28,"year_of_study":2,"email":"bbillie56@sina.com.cn"}, +{"name":"Jock","surname":"Berthomieu","student_ID":440120,"gender":"Genderqueer","age":26,"year_of_study":3,"email":"jberthomieu57@marketwatch.com"}, +{"name":"Reeba","surname":"Chidley","student_ID":168810,"gender":"Female","age":18,"year_of_study":3,"email":"rchidley58@bizjournals.com"}, +{"name":"Stormy","surname":"Fullylove","student_ID":712184,"gender":"Female","age":25,"year_of_study":1,"email":"sfullylove59@columbia.edu"}, +{"name":"Emili","surname":"Searjeant","student_ID":338897,"gender":"Polygender","age":24,"year_of_study":1,"email":"esearjeant5a@istockphoto.com"}, +{"name":"Candy","surname":"Agney","student_ID":313487,"gender":"Female","age":30,"year_of_study":1,"email":"cagney5b@redcross.org"}, +{"name":"Ty","surname":"Fishbourn","student_ID":770042,"gender":"Male","age":30,"year_of_study":2,"email":"tfishbourn5c@apple.com"}, +{"name":"Staci","surname":"Ramel","student_ID":788972,"gender":"Female","age":22,"year_of_study":3,"email":"sramel5d@usgs.gov"}, +{"name":"Farleigh","surname":"Byham","student_ID":529451,"gender":"Male","age":28,"year_of_study":5,"email":"fbyham5e@privacy.gov.au"}, +{"name":"Harli","surname":"Jeffels","student_ID":267890,"gender":"Female","age":24,"year_of_study":5,"email":"hjeffels5f@amazon.com"}, +{"name":"Gerald","surname":"Tweede","student_ID":253618,"gender":"Agender","age":20,"year_of_study":4,"email":"gtweede5g@networksolutions.com"}, +{"name":"Margaux","surname":"Malia","student_ID":699454,"gender":"Female","age":27,"year_of_study":5,"email":"mmalia5h@yahoo.co.jp"}, +{"name":"Hadley","surname":"Yandell","student_ID":149770,"gender":"Male","age":26,"year_of_study":4,"email":"hyandell5i@squidoo.com"}, +{"name":"Lucy","surname":"Quick","student_ID":523604,"gender":"Female","age":24,"year_of_study":1,"email":"lquick5j@geocities.com"}, +{"name":"Milton","surname":"Damp","student_ID":617073,"gender":"Male","age":27,"year_of_study":1,"email":"mdamp5k@cpanel.net"}, +{"name":"Tyrone","surname":"Honnan","student_ID":236896,"gender":"Male","age":23,"year_of_study":2,"email":"thonnan5l@bizjournals.com"}, +{"name":"Edi","surname":"McMaster","student_ID":981713,"gender":"Female","age":19,"year_of_study":1,"email":"emcmaster5m@buzzfeed.com"}, +{"name":"Daffie","surname":"Jennins","student_ID":766389,"gender":"Female","age":18,"year_of_study":1,"email":"djennins5n@ehow.com"}, +{"name":"Meade","surname":"Huckett","student_ID":107576,"gender":"Female","age":25,"year_of_study":5,"email":"mhuckett5o@geocities.jp"}, +{"name":"Page","surname":"Quelch","student_ID":703385,"gender":"Polygender","age":23,"year_of_study":2,"email":"pquelch5p@sun.com"}, +{"name":"Ashia","surname":"Friskey","student_ID":304043,"gender":"Genderqueer","age":27,"year_of_study":1,"email":"afriskey5q@un.org"}, +{"name":"Thoma","surname":"Coultas","student_ID":114733,"gender":"Male","age":27,"year_of_study":1,"email":"tcoultas5r@feedburner.com"}, +{"name":"Bear","surname":"Gibbett","student_ID":259518,"gender":"Male","age":24,"year_of_study":5,"email":"bgibbett5s@cyberchimps.com"}, +{"name":"Baxie","surname":"Chestnutt","student_ID":163963,"gender":"Male","age":22,"year_of_study":4,"email":"bchestnutt5t@tmall.com"}, +{"name":"Emili","surname":"Pilsworth","student_ID":460053,"gender":"Female","age":20,"year_of_study":4,"email":"epilsworth5u@sun.com"}, +{"name":"Kesley","surname":"Huck","student_ID":234727,"gender":"Female","age":24,"year_of_study":1,"email":"khuck5v@flavors.me"}, +{"name":"Roma","surname":"Adran","student_ID":765058,"gender":"Male","age":30,"year_of_study":1,"email":"radran5w@cornell.edu"}, +{"name":"Derril","surname":"Beckmann","student_ID":968804,"gender":"Male","age":30,"year_of_study":3,"email":"dbeckmann5x@mlb.com"}, +{"name":"Rosmunda","surname":"Heninghem","student_ID":122304,"gender":"Female","age":18,"year_of_study":5,"email":"rheninghem5y@utexas.edu"}, +{"name":"Freida","surname":"Baelde","student_ID":632651,"gender":"Female","age":29,"year_of_study":5,"email":"fbaelde5z@dailymail.co.uk"}, +{"name":"Fara","surname":"Nevin","student_ID":154661,"gender":"Female","age":30,"year_of_study":4,"email":"fnevin60@ezinearticles.com"}, +{"name":"My","surname":"Boshard","student_ID":488636,"gender":"Male","age":22,"year_of_study":4,"email":"mboshard61@g.co"}, +{"name":"Ranee","surname":"Phythien","student_ID":192288,"gender":"Female","age":28,"year_of_study":4,"email":"rphythien62@com.com"}, +{"name":"Woodman","surname":"Brasier","student_ID":503452,"gender":"Male","age":20,"year_of_study":5,"email":"wbrasier63@paypal.com"}, +{"name":"Archambault","surname":"Skellington","student_ID":778661,"gender":"Male","age":19,"year_of_study":3,"email":"askellington64@wired.com"}, +{"name":"Rosalia","surname":"Fogg","student_ID":260848,"gender":"Female","age":25,"year_of_study":3,"email":"rfogg65@cargocollective.com"}, +{"name":"Mella","surname":"Sinderland","student_ID":558810,"gender":"Female","age":25,"year_of_study":3,"email":"msinderland66@who.int"}, +{"name":"Christine","surname":"Dare","student_ID":345863,"gender":"Non-binary","age":30,"year_of_study":1,"email":"cdare67@newyorker.com"}, +{"name":"Alexia","surname":"McGurgan","student_ID":790365,"gender":"Female","age":21,"year_of_study":1,"email":"amcgurgan68@istockphoto.com"}, +{"name":"Lothaire","surname":"Bowfin","student_ID":137850,"gender":"Male","age":25,"year_of_study":5,"email":"lbowfin69@sakura.ne.jp"}, +{"name":"Sherye","surname":"Bedo","student_ID":371234,"gender":"Genderfluid","age":25,"year_of_study":3,"email":"sbedo6a@omniture.com"}, +{"name":"Vincenty","surname":"Doel","student_ID":989308,"gender":"Male","age":30,"year_of_study":3,"email":"vdoel6b@cyberchimps.com"}, +{"name":"Van","surname":"Ninotti","student_ID":756305,"gender":"Female","age":20,"year_of_study":3,"email":"vninotti6c@yellowbook.com"}, +{"name":"Lezley","surname":"Saladin","student_ID":528904,"gender":"Male","age":28,"year_of_study":4,"email":"lsaladin6d@fda.gov"}, +{"name":"Dyna","surname":"Dowyer","student_ID":733255,"gender":"Female","age":26,"year_of_study":4,"email":"ddowyer6e@parallels.com"}, +{"name":"Ty","surname":"Gong","student_ID":241489,"gender":"Male","age":30,"year_of_study":1,"email":"tgong6f@netvibes.com"}, +{"name":"Jacynth","surname":"Kornilyev","student_ID":235959,"gender":"Female","age":22,"year_of_study":5,"email":"jkornilyev6g@xing.com"}, +{"name":"Joscelin","surname":"Swinfon","student_ID":235871,"gender":"Female","age":26,"year_of_study":5,"email":"jswinfon6h@cnbc.com"}, +{"name":"Dominik","surname":"Arbon","student_ID":165182,"gender":"Male","age":27,"year_of_study":4,"email":"darbon6i@rakuten.co.jp"}, +{"name":"Nealon","surname":"Monahan","student_ID":247841,"gender":"Male","age":18,"year_of_study":3,"email":"nmonahan6j@hibu.com"}, +{"name":"Kristine","surname":"Mansion","student_ID":505252,"gender":"Female","age":18,"year_of_study":1,"email":"kmansion6k@plala.or.jp"}, +{"name":"Phillipp","surname":"Welsby","student_ID":566368,"gender":"Male","age":27,"year_of_study":3,"email":"pwelsby6l@posterous.com"}, +{"name":"Veriee","surname":"Spaughton","student_ID":706636,"gender":"Polygender","age":22,"year_of_study":5,"email":"vspaughton6m@t.co"}, +{"name":"Monroe","surname":"Ponton","student_ID":444248,"gender":"Male","age":30,"year_of_study":4,"email":"mponton6n@reference.com"}, +{"name":"Zebedee","surname":"Barkshire","student_ID":157397,"gender":"Male","age":22,"year_of_study":5,"email":"zbarkshire6o@g.co"}, +{"name":"Abie","surname":"Tomkinson","student_ID":666111,"gender":"Male","age":29,"year_of_study":1,"email":"atomkinson6p@unesco.org"}, +{"name":"Novelia","surname":"Spadari","student_ID":923666,"gender":"Female","age":26,"year_of_study":4,"email":"nspadari6q@homestead.com"}, +{"name":"Lisetta","surname":"Beert","student_ID":769075,"gender":"Female","age":24,"year_of_study":2,"email":"lbeert6r@cyberchimps.com"}, +{"name":"Marty","surname":"Newis","student_ID":287740,"gender":"Genderqueer","age":21,"year_of_study":3,"email":"mnewis6s@cisco.com"}, +{"name":"Benn","surname":"Rubinowitsch","student_ID":777654,"gender":"Agender","age":20,"year_of_study":5,"email":"brubinowitsch6t@microsoft.com"}, +{"name":"Melisa","surname":"Boullen","student_ID":483351,"gender":"Female","age":30,"year_of_study":5,"email":"mboullen6u@virginia.edu"}, +{"name":"Sisile","surname":"Borrie","student_ID":271461,"gender":"Female","age":27,"year_of_study":2,"email":"sborrie6v@cbsnews.com"}, +{"name":"Emelia","surname":"Westraw","student_ID":826056,"gender":"Female","age":26,"year_of_study":2,"email":"ewestraw6w@free.fr"}, +{"name":"Giordano","surname":"MacIllrick","student_ID":583476,"gender":"Genderfluid","age":30,"year_of_study":4,"email":"gmacillrick6x@tumblr.com"}, +{"name":"Vincenz","surname":"Kubalek","student_ID":771824,"gender":"Male","age":25,"year_of_study":4,"email":"vkubalek6y@hatena.ne.jp"}, +{"name":"Daffy","surname":"Lohden","student_ID":645524,"gender":"Female","age":28,"year_of_study":4,"email":"dlohden6z@wired.com"}, +{"name":"Vonny","surname":"Sebrens","student_ID":421443,"gender":"Female","age":26,"year_of_study":5,"email":"vsebrens70@si.edu"}, +{"name":"Corey","surname":"Fillgate","student_ID":882224,"gender":"Female","age":26,"year_of_study":4,"email":"cfillgate71@npr.org"}, +{"name":"Didi","surname":"Lyddyard","student_ID":853190,"gender":"Female","age":29,"year_of_study":4,"email":"dlyddyard72@amazonaws.com"}, +{"name":"Findley","surname":"Doylend","student_ID":191727,"gender":"Male","age":18,"year_of_study":3,"email":"fdoylend73@timesonline.co.uk"}, +{"name":"Chiarra","surname":"Ferie","student_ID":682136,"gender":"Female","age":29,"year_of_study":1,"email":"cferie74@gov.uk"}, +{"name":"Gothart","surname":"Kohrding","student_ID":284356,"gender":"Male","age":29,"year_of_study":5,"email":"gkohrding75@cafepress.com"}, +{"name":"Elana","surname":"Skellion","student_ID":764529,"gender":"Female","age":22,"year_of_study":5,"email":"eskellion76@msu.edu"}, +{"name":"Kacey","surname":"Burridge","student_ID":920462,"gender":"Female","age":28,"year_of_study":5,"email":"kburridge77@wiley.com"}, +{"name":"Clarita","surname":"Cartner","student_ID":305457,"gender":"Polygender","age":20,"year_of_study":3,"email":"ccartner78@economist.com"}, +{"name":"Hartwell","surname":"Atwel","student_ID":811321,"gender":"Male","age":26,"year_of_study":5,"email":"hatwel79@domainmarket.com"}, +{"name":"Joye","surname":"Acum","student_ID":842199,"gender":"Female","age":30,"year_of_study":3,"email":"jacum7a@google.co.uk"}, +{"name":"Ofella","surname":"Arthan","student_ID":307482,"gender":"Female","age":28,"year_of_study":3,"email":"oarthan7b@bbc.co.uk"}, +{"name":"Annetta","surname":"Redington","student_ID":369998,"gender":"Female","age":27,"year_of_study":4,"email":"aredington7c@discuz.net"}, +{"name":"Conant","surname":"Gingold","student_ID":742892,"gender":"Male","age":25,"year_of_study":3,"email":"cgingold7d@ca.gov"}, +{"name":"Ryon","surname":"Bonas","student_ID":212276,"gender":"Male","age":29,"year_of_study":2,"email":"rbonas7e@163.com"}, +{"name":"Arney","surname":"Bartolozzi","student_ID":878538,"gender":"Male","age":23,"year_of_study":4,"email":"abartolozzi7f@w3.org"}, +{"name":"Claiborn","surname":"Butten","student_ID":434364,"gender":"Male","age":20,"year_of_study":5,"email":"cbutten7g@china.com.cn"}, +{"name":"Erasmus","surname":"MacAughtrie","student_ID":629333,"gender":"Male","age":24,"year_of_study":5,"email":"emacaughtrie7h@abc.net.au"}, +{"name":"Deane","surname":"Faltin","student_ID":516764,"gender":"Male","age":27,"year_of_study":3,"email":"dfaltin7i@mysql.com"}, +{"name":"Hilton","surname":"Saing","student_ID":713426,"gender":"Agender","age":23,"year_of_study":2,"email":"hsaing7j@live.com"}, +{"name":"Dallon","surname":"Tickel","student_ID":723061,"gender":"Male","age":30,"year_of_study":2,"email":"dtickel7k@cbc.ca"}, +{"name":"Roby","surname":"Foskew","student_ID":338075,"gender":"Female","age":20,"year_of_study":4,"email":"rfoskew7l@scientificamerican.com"}, +{"name":"Avigdor","surname":"Walsh","student_ID":571890,"gender":"Male","age":21,"year_of_study":3,"email":"awalsh7m@google.com.hk"}, +{"name":"Merrily","surname":"Varey","student_ID":578860,"gender":"Female","age":19,"year_of_study":3,"email":"mvarey7n@youtu.be"}, +{"name":"Win","surname":"Rohlf","student_ID":692646,"gender":"Male","age":19,"year_of_study":5,"email":"wrohlf7o@yellowpages.com"}, +{"name":"Dela","surname":"Pett","student_ID":675081,"gender":"Female","age":24,"year_of_study":1,"email":"dpett7p@vkontakte.ru"}, +{"name":"Aloysia","surname":"Cremin","student_ID":779708,"gender":"Female","age":22,"year_of_study":3,"email":"acremin7q@clickbank.net"}, +{"name":"Mellisent","surname":"Grinston","student_ID":591400,"gender":"Female","age":22,"year_of_study":2,"email":"mgrinston7r@pbs.org"}, +{"name":"Wynne","surname":"Sollas","student_ID":989899,"gender":"Female","age":24,"year_of_study":2,"email":"wsollas7s@un.org"}, +{"name":"Demetris","surname":"Khristyukhin","student_ID":337383,"gender":"Female","age":20,"year_of_study":2,"email":"dkhristyukhin7t@e-recht24.de"}, +{"name":"Roosevelt","surname":"Espinay","student_ID":647506,"gender":"Male","age":20,"year_of_study":1,"email":"respinay7u@jimdo.com"}, +{"name":"Ophelia","surname":"Merriman","student_ID":958149,"gender":"Female","age":20,"year_of_study":2,"email":"omerriman7v@jugem.jp"}, +{"name":"Cherise","surname":"Calvard","student_ID":615186,"gender":"Female","age":29,"year_of_study":4,"email":"ccalvard7w@wikispaces.com"}, +{"name":"Galvin","surname":"Miquelet","student_ID":998144,"gender":"Male","age":26,"year_of_study":4,"email":"gmiquelet7x@usa.gov"}, +{"name":"Austine","surname":"Gabby","student_ID":756788,"gender":"Female","age":29,"year_of_study":5,"email":"agabby7y@bravesites.com"}, +{"name":"Elly","surname":"Kittless","student_ID":801962,"gender":"Female","age":18,"year_of_study":5,"email":"ekittless7z@nytimes.com"}, +{"name":"Webb","surname":"Pengelly","student_ID":378087,"gender":"Male","age":28,"year_of_study":1,"email":"wpengelly80@technorati.com"}, +{"name":"Lucy","surname":"Cuttin","student_ID":545616,"gender":"Female","age":30,"year_of_study":4,"email":"lcuttin81@elpais.com"}, +{"name":"Marwin","surname":"Boarleyson","student_ID":913421,"gender":"Male","age":20,"year_of_study":2,"email":"mboarleyson82@mail.ru"}, +{"name":"Nickolai","surname":"Hardisty","student_ID":401555,"gender":"Polygender","age":21,"year_of_study":3,"email":"nhardisty83@google.ca"}, +{"name":"Hyacinthia","surname":"Halbert","student_ID":570347,"gender":"Female","age":29,"year_of_study":2,"email":"hhalbert84@columbia.edu"}, +{"name":"Erasmus","surname":"Vain","student_ID":159214,"gender":"Male","age":28,"year_of_study":5,"email":"evain85@discuz.net"}, +{"name":"Bunni","surname":"Grigolon","student_ID":639726,"gender":"Female","age":25,"year_of_study":5,"email":"bgrigolon86@mtv.com"}, +{"name":"Cassie","surname":"Barenskie","student_ID":816287,"gender":"Male","age":20,"year_of_study":3,"email":"cbarenskie87@baidu.com"}, +{"name":"Isidro","surname":"Borgesio","student_ID":471002,"gender":"Male","age":29,"year_of_study":4,"email":"iborgesio88@imageshack.us"}, +{"name":"Jerrie","surname":"Rosell","student_ID":252154,"gender":"Male","age":28,"year_of_study":4,"email":"jrosell89@thetimes.co.uk"}, +{"name":"Noelyn","surname":"Egdale","student_ID":432247,"gender":"Female","age":24,"year_of_study":5,"email":"negdale8a@devhub.com"}, +{"name":"Stacee","surname":"Sloss","student_ID":606900,"gender":"Female","age":27,"year_of_study":3,"email":"ssloss8b@sbwire.com"}, +{"name":"Bili","surname":"Inchan","student_ID":413052,"gender":"Female","age":25,"year_of_study":3,"email":"binchan8c@hatena.ne.jp"}, +{"name":"Trisha","surname":"Piaggia","student_ID":508653,"gender":"Female","age":18,"year_of_study":4,"email":"tpiaggia8d@goo.gl"}, +{"name":"Deidre","surname":"Goldsworthy","student_ID":384185,"gender":"Female","age":29,"year_of_study":1,"email":"dgoldsworthy8e@wisc.edu"}, +{"name":"Delores","surname":"Mewrcik","student_ID":635218,"gender":"Female","age":24,"year_of_study":4,"email":"dmewrcik8f@nba.com"}, +{"name":"Donalt","surname":"Dunbavin","student_ID":914018,"gender":"Male","age":20,"year_of_study":4,"email":"ddunbavin8g@digg.com"}, +{"name":"Yance","surname":"Branscombe","student_ID":311803,"gender":"Male","age":25,"year_of_study":3,"email":"ybranscombe8h@github.io"}, +{"name":"Cindelyn","surname":"Devonish","student_ID":789461,"gender":"Female","age":21,"year_of_study":1,"email":"cdevonish8i@fc2.com"}, +{"name":"Bertrando","surname":"Bohike","student_ID":420898,"gender":"Polygender","age":30,"year_of_study":4,"email":"bbohike8j@php.net"}, +{"name":"Babara","surname":"Feasby","student_ID":348723,"gender":"Female","age":29,"year_of_study":1,"email":"bfeasby8k@amazon.de"}, +{"name":"Baudoin","surname":"Dalgarno","student_ID":426747,"gender":"Male","age":27,"year_of_study":5,"email":"bdalgarno8l@furl.net"}, +{"name":"Sheffie","surname":"Mooreed","student_ID":187763,"gender":"Male","age":28,"year_of_study":1,"email":"smooreed8m@state.gov"}, +{"name":"Winni","surname":"Bruhn","student_ID":666812,"gender":"Female","age":20,"year_of_study":1,"email":"wbruhn8n@paginegialle.it"}, +{"name":"Marius","surname":"Fewings","student_ID":997751,"gender":"Male","age":23,"year_of_study":4,"email":"mfewings8o@stanford.edu"}, +{"name":"Lock","surname":"Carbery","student_ID":415421,"gender":"Male","age":27,"year_of_study":4,"email":"lcarbery8p@cocolog-nifty.com"}, +{"name":"Elfreda","surname":"Bourgaize","student_ID":140441,"gender":"Female","age":22,"year_of_study":1,"email":"ebourgaize8q@microsoft.com"}, +{"name":"Maynord","surname":"Sancto","student_ID":902574,"gender":"Male","age":18,"year_of_study":2,"email":"msancto8r@phpbb.com"}, +{"name":"Cora","surname":"Highman","student_ID":462277,"gender":"Female","age":18,"year_of_study":1,"email":"chighman8s@mayoclinic.com"}, +{"name":"Wrennie","surname":"Tomas","student_ID":346114,"gender":"Female","age":22,"year_of_study":2,"email":"wtomas8t@ox.ac.uk"}, +{"name":"Coral","surname":"Purver","student_ID":134462,"gender":"Female","age":20,"year_of_study":2,"email":"cpurver8u@pen.io"}, +{"name":"Burk","surname":"Luckett","student_ID":338462,"gender":"Male","age":18,"year_of_study":5,"email":"bluckett8v@techcrunch.com"}, +{"name":"Katleen","surname":"Sygrove","student_ID":634338,"gender":"Female","age":24,"year_of_study":4,"email":"ksygrove8w@chron.com"}, +{"name":"Mandel","surname":"Drewe","student_ID":581078,"gender":"Male","age":21,"year_of_study":3,"email":"mdrewe8x@prweb.com"}, +{"name":"Trace","surname":"Lidgate","student_ID":467973,"gender":"Male","age":18,"year_of_study":3,"email":"tlidgate8y@fc2.com"}, +{"name":"Reynard","surname":"Gent","student_ID":760262,"gender":"Male","age":20,"year_of_study":5,"email":"rgent8z@51.la"}, +{"name":"Jonah","surname":"Rozier","student_ID":525787,"gender":"Male","age":23,"year_of_study":2,"email":"jrozier90@paypal.com"}, +{"name":"Yurik","surname":"Hayzer","student_ID":113544,"gender":"Male","age":25,"year_of_study":2,"email":"yhayzer91@ning.com"}, +{"name":"Baryram","surname":"Furniss","student_ID":387084,"gender":"Male","age":26,"year_of_study":2,"email":"bfurniss92@amazonaws.com"}, +{"name":"Farr","surname":"Maty","student_ID":227647,"gender":"Male","age":27,"year_of_study":4,"email":"fmaty93@nba.com"}, +{"name":"Monica","surname":"Maccraw","student_ID":139621,"gender":"Female","age":27,"year_of_study":5,"email":"mmaccraw94@networkadvertising.org"}, +{"name":"Wenonah","surname":"MacIlraith","student_ID":382246,"gender":"Female","age":24,"year_of_study":5,"email":"wmacilraith95@multiply.com"}, +{"name":"Kinny","surname":"Spleving","student_ID":256943,"gender":"Polygender","age":29,"year_of_study":4,"email":"kspleving96@over-blog.com"}, +{"name":"Neville","surname":"Bliss","student_ID":157822,"gender":"Male","age":19,"year_of_study":2,"email":"nbliss97@ovh.net"}, +{"name":"Bryant","surname":"Jackett","student_ID":815524,"gender":"Male","age":19,"year_of_study":5,"email":"bjackett98@wikispaces.com"}, +{"name":"Nell","surname":"Van Dijk","student_ID":308533,"gender":"Female","age":29,"year_of_study":1,"email":"nvandijk99@businessinsider.com"}, +{"name":"Belita","surname":"Brockherst","student_ID":737833,"gender":"Female","age":20,"year_of_study":2,"email":"bbrockherst9a@github.io"}, +{"name":"Farra","surname":"Shelley","student_ID":713769,"gender":"Female","age":20,"year_of_study":2,"email":"fshelley9b@about.com"}, +{"name":"Merrilee","surname":"Blade","student_ID":741245,"gender":"Female","age":21,"year_of_study":1,"email":"mblade9c@hugedomains.com"}, +{"name":"Godfree","surname":"Spry","student_ID":288968,"gender":"Male","age":27,"year_of_study":2,"email":"gspry9d@sphinn.com"}, +{"name":"Paolina","surname":"Wareing","student_ID":549343,"gender":"Female","age":23,"year_of_study":4,"email":"pwareing9e@ihg.com"}, +{"name":"Tanny","surname":"De Fries","student_ID":686320,"gender":"Male","age":27,"year_of_study":3,"email":"tdefries9f@list-manage.com"}, +{"name":"Temp","surname":"Pinnere","student_ID":336109,"gender":"Male","age":27,"year_of_study":2,"email":"tpinnere9g@discovery.com"}, +{"name":"Fidela","surname":"McClenan","student_ID":310835,"gender":"Female","age":30,"year_of_study":4,"email":"fmcclenan9h@redcross.org"}, +{"name":"Binnie","surname":"Fillingham","student_ID":368476,"gender":"Non-binary","age":20,"year_of_study":4,"email":"bfillingham9i@narod.ru"}, +{"name":"Ruprecht","surname":"Duddle","student_ID":252594,"gender":"Bigender","age":30,"year_of_study":1,"email":"rduddle9j@washington.edu"}, +{"name":"Phil","surname":"Peet","student_ID":427190,"gender":"Female","age":23,"year_of_study":4,"email":"ppeet9k@biglobe.ne.jp"}, +{"name":"Carmella","surname":"Columbine","student_ID":141042,"gender":"Female","age":28,"year_of_study":5,"email":"ccolumbine9l@tamu.edu"}, +{"name":"Lyndell","surname":"Caroline","student_ID":105783,"gender":"Female","age":22,"year_of_study":4,"email":"lcaroline9m@mapy.cz"}, +{"name":"Carlyn","surname":"Rennebeck","student_ID":580862,"gender":"Female","age":28,"year_of_study":5,"email":"crennebeck9n@nps.gov"}, +{"name":"Nomi","surname":"McGauhy","student_ID":497116,"gender":"Non-binary","age":23,"year_of_study":3,"email":"nmcgauhy9o@devhub.com"}, +{"name":"Rancell","surname":"Toulch","student_ID":689722,"gender":"Genderqueer","age":30,"year_of_study":5,"email":"rtoulch9p@linkedin.com"}, +{"name":"Kial","surname":"Kertess","student_ID":351682,"gender":"Female","age":18,"year_of_study":3,"email":"kkertess9q@gravatar.com"}, +{"name":"Gwendolin","surname":"Cattellion","student_ID":566547,"gender":"Female","age":24,"year_of_study":4,"email":"gcattellion9r@plala.or.jp"}, +{"name":"Mommy","surname":"Winser","student_ID":576867,"gender":"Female","age":30,"year_of_study":4,"email":"mwinser9s@ustream.tv"}, +{"name":"Garik","surname":"Stiven","student_ID":173496,"gender":"Male","age":21,"year_of_study":4,"email":"gstiven9t@smh.com.au"}, +{"name":"Jorry","surname":"Fance","student_ID":338315,"gender":"Female","age":18,"year_of_study":4,"email":"jfance9u@unc.edu"}, +{"name":"August","surname":"Scrowson","student_ID":163785,"gender":"Agender","age":21,"year_of_study":5,"email":"ascrowson9v@netlog.com"}, +{"name":"Ryley","surname":"Macknish","student_ID":693453,"gender":"Male","age":22,"year_of_study":3,"email":"rmacknish9w@squarespace.com"}, +{"name":"Trstram","surname":"Munks","student_ID":904381,"gender":"Non-binary","age":24,"year_of_study":2,"email":"tmunks9x@desdev.cn"}, +{"name":"Letta","surname":"Sex","student_ID":646217,"gender":"Female","age":18,"year_of_study":3,"email":"lsex9y@ameblo.jp"}, +{"name":"Clementius","surname":"Rouby","student_ID":701640,"gender":"Male","age":21,"year_of_study":4,"email":"crouby9z@cargocollective.com"}, +{"name":"Verina","surname":"Simony","student_ID":666400,"gender":"Female","age":28,"year_of_study":1,"email":"vsimonya0@webmd.com"}, +{"name":"Raffarty","surname":"Urling","student_ID":932984,"gender":"Bigender","age":23,"year_of_study":5,"email":"rurlinga1@diigo.com"}, +{"name":"Callie","surname":"Rodwell","student_ID":605531,"gender":"Female","age":22,"year_of_study":5,"email":"crodwella2@booking.com"}, +{"name":"Quinn","surname":"Cheevers","student_ID":793076,"gender":"Genderqueer","age":30,"year_of_study":5,"email":"qcheeversa3@china.com.cn"}, +{"name":"Edan","surname":"Ormiston","student_ID":168344,"gender":"Male","age":23,"year_of_study":5,"email":"eormistona4@lycos.com"}, +{"name":"Addi","surname":"Arne","student_ID":814533,"gender":"Female","age":21,"year_of_study":2,"email":"aarnea5@friendfeed.com"}, +{"name":"Omar","surname":"Eltone","student_ID":712260,"gender":"Male","age":22,"year_of_study":3,"email":"oeltonea6@xing.com"}, +{"name":"Layney","surname":"Mattiassi","student_ID":870747,"gender":"Female","age":21,"year_of_study":2,"email":"lmattiassia7@google.com.br"}, +{"name":"Schuyler","surname":"Iron","student_ID":329889,"gender":"Male","age":20,"year_of_study":5,"email":"sirona8@is.gd"}, +{"name":"Kelley","surname":"Joselevitch","student_ID":166317,"gender":"Female","age":22,"year_of_study":5,"email":"kjoselevitcha9@free.fr"}, +{"name":"Kris","surname":"Dupoy","student_ID":824954,"gender":"Female","age":27,"year_of_study":3,"email":"kdupoyaa@xrea.com"}, +{"name":"Shaughn","surname":"Skerm","student_ID":646441,"gender":"Male","age":25,"year_of_study":2,"email":"sskermab@skype.com"}, +{"name":"Saundra","surname":"Wrotham","student_ID":557566,"gender":"Polygender","age":27,"year_of_study":1,"email":"swrothamac@sciencedaily.com"}, +{"name":"Cecile","surname":"Nudde","student_ID":469889,"gender":"Female","age":24,"year_of_study":5,"email":"cnuddead@reverbnation.com"}, +{"name":"Whitney","surname":"Byrne","student_ID":717199,"gender":"Bigender","age":21,"year_of_study":4,"email":"wbyrneae@netscape.com"}, +{"name":"Maurie","surname":"Howitt","student_ID":350369,"gender":"Male","age":30,"year_of_study":5,"email":"mhowittaf@nasa.gov"}, +{"name":"Keir","surname":"Wilsher","student_ID":898477,"gender":"Male","age":25,"year_of_study":1,"email":"kwilsherag@chron.com"}, +{"name":"Nevile","surname":"Naire","student_ID":685491,"gender":"Genderfluid","age":21,"year_of_study":4,"email":"nnaireah@usnews.com"}, +{"name":"Marilee","surname":"Archambault","student_ID":292000,"gender":"Female","age":28,"year_of_study":5,"email":"marchambaultai@is.gd"}, +{"name":"Elsie","surname":"Hammarberg","student_ID":801186,"gender":"Female","age":29,"year_of_study":3,"email":"ehammarbergaj@huffingtonpost.com"}, +{"name":"Glendon","surname":"Culligan","student_ID":459266,"gender":"Male","age":27,"year_of_study":4,"email":"gculliganak@tamu.edu"}, +{"name":"Grazia","surname":"Copins","student_ID":290147,"gender":"Female","age":21,"year_of_study":1,"email":"gcopinsal@dmoz.org"}, +{"name":"Alfonso","surname":"Bulfoot","student_ID":555686,"gender":"Male","age":21,"year_of_study":1,"email":"abulfootam@1und1.de"}, +{"name":"Umberto","surname":"Speedy","student_ID":643859,"gender":"Male","age":29,"year_of_study":1,"email":"uspeedyan@toplist.cz"}, +{"name":"Zaccaria","surname":"Rowler","student_ID":360638,"gender":"Male","age":26,"year_of_study":5,"email":"zrowlerao@shareasale.com"}, +{"name":"Ashli","surname":"Moyne","student_ID":179098,"gender":"Female","age":19,"year_of_study":1,"email":"amoyneap@cnbc.com"}, +{"name":"Melisande","surname":"Dack","student_ID":459435,"gender":"Genderqueer","age":25,"year_of_study":1,"email":"mdackaq@prlog.org"}, +{"name":"Adham","surname":"Monshall","student_ID":421457,"gender":"Male","age":20,"year_of_study":4,"email":"amonshallar@dailymotion.com"}, +{"name":"Selig","surname":"MacCartair","student_ID":585212,"gender":"Male","age":27,"year_of_study":3,"email":"smaccartairas@gmpg.org"}, +{"name":"Vanessa","surname":"Kingscote","student_ID":980898,"gender":"Female","age":30,"year_of_study":3,"email":"vkingscoteat@webs.com"}, +{"name":"Bertina","surname":"McKelvey","student_ID":193680,"gender":"Female","age":21,"year_of_study":1,"email":"bmckelveyau@marketwatch.com"}, +{"name":"Reid","surname":"Coase","student_ID":965254,"gender":"Male","age":30,"year_of_study":4,"email":"rcoaseav@mapquest.com"}, +{"name":"Nata","surname":"Gales","student_ID":431420,"gender":"Female","age":27,"year_of_study":3,"email":"ngalesaw@sciencedaily.com"}, +{"name":"Mady","surname":"Sails","student_ID":415788,"gender":"Polygender","age":22,"year_of_study":3,"email":"msailsax@pen.io"}, +{"name":"Aldus","surname":"Finding","student_ID":824608,"gender":"Male","age":19,"year_of_study":4,"email":"afindingay@princeton.edu"}, +{"name":"Mala","surname":"Churchyard","student_ID":918490,"gender":"Female","age":19,"year_of_study":2,"email":"mchurchyardaz@wordpress.com"}, +{"name":"Chico","surname":"Blainey","student_ID":112776,"gender":"Male","age":26,"year_of_study":1,"email":"cblaineyb0@4shared.com"}, +{"name":"Fabien","surname":"Whitsun","student_ID":993331,"gender":"Male","age":19,"year_of_study":3,"email":"fwhitsunb1@spiegel.de"}, +{"name":"Clayborne","surname":"Saward","student_ID":898056,"gender":"Non-binary","age":18,"year_of_study":1,"email":"csawardb2@cpanel.net"}, +{"name":"Glenn","surname":"Marriott","student_ID":381135,"gender":"Female","age":22,"year_of_study":4,"email":"gmarriottb3@over-blog.com"}, +{"name":"Louie","surname":"Martineau","student_ID":323801,"gender":"Male","age":24,"year_of_study":1,"email":"lmartineaub4@rediff.com"}, +{"name":"Siegfried","surname":"Clarson","student_ID":608482,"gender":"Male","age":29,"year_of_study":3,"email":"sclarsonb5@telegraph.co.uk"}, +{"name":"Meredith","surname":"Santos","student_ID":116661,"gender":"Male","age":24,"year_of_study":2,"email":"msantosb6@weather.com"}, +{"name":"Benoite","surname":"Jaszczak","student_ID":457371,"gender":"Female","age":25,"year_of_study":3,"email":"bjaszczakb7@jimdo.com"}, +{"name":"Ricca","surname":"Bastick","student_ID":819621,"gender":"Female","age":28,"year_of_study":4,"email":"rbastickb8@adobe.com"}, +{"name":"Brittne","surname":"Couth","student_ID":559904,"gender":"Female","age":23,"year_of_study":5,"email":"bcouthb9@myspace.com"}, +{"name":"Daria","surname":"Careswell","student_ID":190633,"gender":"Female","age":30,"year_of_study":3,"email":"dcareswellba@upenn.edu"}, +{"name":"Cullan","surname":"Visco","student_ID":819452,"gender":"Polygender","age":20,"year_of_study":4,"email":"cviscobb@hao123.com"}, +{"name":"Janaye","surname":"Odney","student_ID":610559,"gender":"Female","age":22,"year_of_study":4,"email":"jodneybc@vistaprint.com"}, +{"name":"Roldan","surname":"Choffin","student_ID":751142,"gender":"Male","age":28,"year_of_study":2,"email":"rchoffinbd@devhub.com"}, +{"name":"Stafani","surname":"Faustian","student_ID":807493,"gender":"Female","age":24,"year_of_study":2,"email":"sfaustianbe@mit.edu"}, +{"name":"Briant","surname":"Ellsom","student_ID":581394,"gender":"Male","age":20,"year_of_study":4,"email":"bellsombf@google.com"}, +{"name":"Benjamen","surname":"Gollop","student_ID":692895,"gender":"Male","age":24,"year_of_study":4,"email":"bgollopbg@ted.com"}, +{"name":"Reta","surname":"Izen","student_ID":125148,"gender":"Female","age":24,"year_of_study":3,"email":"rizenbh@washington.edu"}, +{"name":"Ignazio","surname":"Mattys","student_ID":454438,"gender":"Male","age":27,"year_of_study":4,"email":"imattysbi@google.pl"}, +{"name":"Marna","surname":"Papa","student_ID":976981,"gender":"Female","age":27,"year_of_study":5,"email":"mpapabj@mozilla.org"}, +{"name":"Francisco","surname":"Kohter","student_ID":720104,"gender":"Male","age":24,"year_of_study":4,"email":"fkohterbk@addtoany.com"}, +{"name":"Farrel","surname":"Extill","student_ID":158034,"gender":"Male","age":24,"year_of_study":2,"email":"fextillbl@google.com.br"}, +{"name":"Martha","surname":"Ridsdale","student_ID":545016,"gender":"Female","age":19,"year_of_study":1,"email":"mridsdalebm@blogtalkradio.com"}, +{"name":"Wood","surname":"Laurentino","student_ID":414416,"gender":"Male","age":26,"year_of_study":1,"email":"wlaurentinobn@purevolume.com"}, +{"name":"Huntley","surname":"Haborn","student_ID":474681,"gender":"Male","age":26,"year_of_study":3,"email":"hhabornbo@instagram.com"}, +{"name":"Priscella","surname":"Cresswell","student_ID":174706,"gender":"Genderfluid","age":22,"year_of_study":4,"email":"pcresswellbp@myspace.com"}, +{"name":"Jenica","surname":"Chalke","student_ID":682568,"gender":"Female","age":19,"year_of_study":4,"email":"jchalkebq@hatena.ne.jp"}, +{"name":"Prentiss","surname":"Dawbery","student_ID":177908,"gender":"Male","age":22,"year_of_study":3,"email":"pdawberybr@topsy.com"}, +{"name":"Trever","surname":"Iacopo","student_ID":572403,"gender":"Male","age":26,"year_of_study":5,"email":"tiacopobs@weather.com"}, +{"name":"Chandra","surname":"Albert","student_ID":561481,"gender":"Female","age":24,"year_of_study":3,"email":"calbertbt@diigo.com"}, +{"name":"Dianne","surname":"Grouvel","student_ID":805162,"gender":"Female","age":24,"year_of_study":4,"email":"dgrouvelbu@independent.co.uk"}, +{"name":"Correna","surname":"Gradwell","student_ID":516773,"gender":"Female","age":25,"year_of_study":5,"email":"cgradwellbv@aol.com"}, +{"name":"Claude","surname":"Lomas","student_ID":962821,"gender":"Bigender","age":23,"year_of_study":3,"email":"clomasbw@newsvine.com"}, +{"name":"Isidore","surname":"Petri","student_ID":474207,"gender":"Male","age":18,"year_of_study":5,"email":"ipetribx@diigo.com"}, +{"name":"Bordy","surname":"Tirrey","student_ID":965392,"gender":"Male","age":29,"year_of_study":3,"email":"btirreyby@de.vu"}, +{"name":"Kellen","surname":"Cleft","student_ID":900226,"gender":"Male","age":19,"year_of_study":2,"email":"kcleftbz@cyberchimps.com"}, +{"name":"Aili","surname":"Wittrington","student_ID":169226,"gender":"Female","age":20,"year_of_study":2,"email":"awittringtonc0@abc.net.au"}, +{"name":"Roseline","surname":"Inett","student_ID":740920,"gender":"Female","age":29,"year_of_study":2,"email":"rinettc1@networksolutions.com"}, +{"name":"Delila","surname":"Kuban","student_ID":607574,"gender":"Female","age":19,"year_of_study":5,"email":"dkubanc2@squidoo.com"}, +{"name":"Idaline","surname":"Elliss","student_ID":416535,"gender":"Female","age":28,"year_of_study":3,"email":"iellissc3@mit.edu"}, +{"name":"Mendy","surname":"Barzen","student_ID":770569,"gender":"Male","age":21,"year_of_study":2,"email":"mbarzenc4@youtube.com"}, +{"name":"Sylas","surname":"Rase","student_ID":864471,"gender":"Male","age":26,"year_of_study":1,"email":"srasec5@over-blog.com"}, +{"name":"Kris","surname":"Stonebridge","student_ID":196549,"gender":"Male","age":24,"year_of_study":5,"email":"kstonebridgec6@unesco.org"}, +{"name":"Vance","surname":"Necolds","student_ID":809742,"gender":"Male","age":27,"year_of_study":5,"email":"vnecoldsc7@sphinn.com"}, +{"name":"Trina","surname":"Willatts","student_ID":108082,"gender":"Female","age":28,"year_of_study":3,"email":"twillattsc8@jugem.jp"}, +{"name":"Aindrea","surname":"Keenlayside","student_ID":520245,"gender":"Female","age":27,"year_of_study":2,"email":"akeenlaysidec9@devhub.com"}, +{"name":"Valentijn","surname":"Fidge","student_ID":854099,"gender":"Male","age":28,"year_of_study":5,"email":"vfidgeca@slashdot.org"}, +{"name":"Nicolle","surname":"Marini","student_ID":281127,"gender":"Female","age":20,"year_of_study":4,"email":"nmarinicb@webmd.com"}, +{"name":"Zarah","surname":"Gorghetto","student_ID":958445,"gender":"Female","age":21,"year_of_study":3,"email":"zgorghettocc@topsy.com"}, +{"name":"Allayne","surname":"Piddocke","student_ID":407106,"gender":"Male","age":23,"year_of_study":5,"email":"apiddockecd@cloudflare.com"}, +{"name":"Kevan","surname":"Enocksson","student_ID":669967,"gender":"Genderfluid","age":23,"year_of_study":3,"email":"kenockssonce@taobao.com"}, +{"name":"Ayn","surname":"Hammell","student_ID":256671,"gender":"Female","age":27,"year_of_study":1,"email":"ahammellcf@cnn.com"}, +{"name":"Vernen","surname":"Eldrett","student_ID":412379,"gender":"Male","age":20,"year_of_study":1,"email":"veldrettcg@51.la"}, +{"name":"Aurie","surname":"Addison","student_ID":519094,"gender":"Female","age":29,"year_of_study":3,"email":"aaddisonch@google.co.jp"}, +{"name":"Raul","surname":"Boncore","student_ID":314865,"gender":"Male","age":24,"year_of_study":2,"email":"rboncoreci@purevolume.com"}, +{"name":"Devinne","surname":"Wolstenholme","student_ID":772478,"gender":"Agender","age":24,"year_of_study":2,"email":"dwolstenholmecj@last.fm"}, +{"name":"Karole","surname":"Jon","student_ID":830067,"gender":"Female","age":18,"year_of_study":4,"email":"kjonck@japanpost.jp"}, +{"name":"Marjory","surname":"Josephs","student_ID":882052,"gender":"Female","age":20,"year_of_study":4,"email":"mjosephscl@nytimes.com"}, +{"name":"Gnni","surname":"Archdeacon","student_ID":949064,"gender":"Female","age":20,"year_of_study":2,"email":"garchdeaconcm@xing.com"}, +{"name":"Kelby","surname":"Fishpool","student_ID":586308,"gender":"Bigender","age":27,"year_of_study":4,"email":"kfishpoolcn@walmart.com"}, +{"name":"Lorianne","surname":"Simkovich","student_ID":514063,"gender":"Female","age":30,"year_of_study":2,"email":"lsimkovichco@thetimes.co.uk"}, +{"name":"Chiquia","surname":"Yurkiewicz","student_ID":437934,"gender":"Female","age":27,"year_of_study":3,"email":"cyurkiewiczcp@gravatar.com"}, +{"name":"Constantino","surname":"Culverhouse","student_ID":160304,"gender":"Male","age":22,"year_of_study":3,"email":"cculverhousecq@patch.com"}, +{"name":"Rriocard","surname":"Fidilis","student_ID":960192,"gender":"Male","age":30,"year_of_study":4,"email":"rfidiliscr@reuters.com"}, +{"name":"Hyacinth","surname":"Mityukov","student_ID":562151,"gender":"Bigender","age":20,"year_of_study":3,"email":"hmityukovcs@edublogs.org"}, +{"name":"Fletcher","surname":"Arnke","student_ID":220111,"gender":"Male","age":25,"year_of_study":1,"email":"farnkect@ycombinator.com"}, +{"name":"Caroline","surname":"Bock","student_ID":158910,"gender":"Female","age":18,"year_of_study":2,"email":"cbockcu@photobucket.com"}, +{"name":"Janine","surname":"Mcettrick","student_ID":895549,"gender":"Female","age":22,"year_of_study":3,"email":"jmcettrickcv@cnbc.com"}, +{"name":"Trude","surname":"Bruff","student_ID":500401,"gender":"Non-binary","age":30,"year_of_study":3,"email":"tbruffcw@tumblr.com"}, +{"name":"Koo","surname":"Downes","student_ID":247246,"gender":"Female","age":26,"year_of_study":2,"email":"kdownescx@howstuffworks.com"}, +{"name":"Ingeberg","surname":"Estrella","student_ID":976339,"gender":"Female","age":30,"year_of_study":1,"email":"iestrellacy@ycombinator.com"}, +{"name":"Gustave","surname":"Peckitt","student_ID":659616,"gender":"Male","age":28,"year_of_study":4,"email":"gpeckittcz@irs.gov"}, +{"name":"Rodolfo","surname":"Brookes","student_ID":624723,"gender":"Male","age":25,"year_of_study":1,"email":"rbrookesd0@networkadvertising.org"}, +{"name":"Lombard","surname":"Kenney","student_ID":550017,"gender":"Male","age":27,"year_of_study":5,"email":"lkenneyd1@pagesperso-orange.fr"}, +{"name":"Sunshine","surname":"Merrywether","student_ID":299862,"gender":"Female","age":19,"year_of_study":5,"email":"smerrywetherd2@sfgate.com"}, +{"name":"Briano","surname":"Callacher","student_ID":389474,"gender":"Male","age":24,"year_of_study":2,"email":"bcallacherd3@lulu.com"}, +{"name":"Nevil","surname":"MacPaike","student_ID":308261,"gender":"Male","age":25,"year_of_study":2,"email":"nmacpaiked4@drupal.org"}, +{"name":"Jefferson","surname":"Frost","student_ID":649315,"gender":"Male","age":19,"year_of_study":3,"email":"jfrostd5@cafepress.com"}, +{"name":"Hamilton","surname":"Moogan","student_ID":710617,"gender":"Male","age":25,"year_of_study":1,"email":"hmoogand6@photobucket.com"}, +{"name":"Opal","surname":"Revington","student_ID":628595,"gender":"Female","age":23,"year_of_study":5,"email":"orevingtond7@netvibes.com"}, +{"name":"Boyce","surname":"Dwyr","student_ID":970235,"gender":"Male","age":28,"year_of_study":2,"email":"bdwyrd8@last.fm"}, +{"name":"Nessie","surname":"Kyngdon","student_ID":202089,"gender":"Female","age":25,"year_of_study":1,"email":"nkyngdond9@reddit.com"}, +{"name":"Marchall","surname":"Karchowski","student_ID":646683,"gender":"Male","age":20,"year_of_study":5,"email":"mkarchowskida@google.fr"}, +{"name":"Robbyn","surname":"Rodolphe","student_ID":357045,"gender":"Female","age":30,"year_of_study":1,"email":"rrodolphedb@archive.org"}, +{"name":"Carney","surname":"Skeech","student_ID":770064,"gender":"Male","age":30,"year_of_study":5,"email":"cskeechdc@ucoz.com"}, +{"name":"Dukey","surname":"Bambra","student_ID":444960,"gender":"Male","age":23,"year_of_study":5,"email":"dbambradd@miibeian.gov.cn"}, +{"name":"Stafford","surname":"Rice","student_ID":869546,"gender":"Male","age":26,"year_of_study":4,"email":"sricede@discovery.com"}, +{"name":"Julius","surname":"Dmitr","student_ID":218247,"gender":"Male","age":18,"year_of_study":4,"email":"jdmitrdf@businessweek.com"}, +{"name":"Shandra","surname":"Edmondson","student_ID":885158,"gender":"Female","age":30,"year_of_study":4,"email":"sedmondsondg@slate.com"}, +{"name":"Ruy","surname":"Malster","student_ID":206867,"gender":"Male","age":20,"year_of_study":1,"email":"rmalsterdh@php.net"}, +{"name":"Benita","surname":"Pennrington","student_ID":685772,"gender":"Female","age":23,"year_of_study":1,"email":"bpennringtondi@addthis.com"}, +{"name":"Chucho","surname":"Brind","student_ID":256936,"gender":"Male","age":30,"year_of_study":1,"email":"cbrinddj@youtu.be"}, +{"name":"Rick","surname":"Elkington","student_ID":684251,"gender":"Agender","age":25,"year_of_study":4,"email":"relkingtondk@elpais.com"}, +{"name":"Verge","surname":"Bescoby","student_ID":248925,"gender":"Male","age":29,"year_of_study":5,"email":"vbescobydl@acquirethisname.com"}, +{"name":"Reta","surname":"Chatfield","student_ID":538268,"gender":"Female","age":18,"year_of_study":1,"email":"rchatfielddm@nifty.com"}, +{"name":"Cy","surname":"Cockshot","student_ID":772858,"gender":"Male","age":22,"year_of_study":3,"email":"ccockshotdn@hubpages.com"}, +{"name":"Sindee","surname":"Yarranton","student_ID":324749,"gender":"Female","age":26,"year_of_study":5,"email":"syarrantondo@hostgator.com"}, +{"name":"Evin","surname":"Gladwish","student_ID":142595,"gender":"Male","age":29,"year_of_study":1,"email":"egladwishdp@gravatar.com"}, +{"name":"Raynard","surname":"Rickerd","student_ID":306674,"gender":"Male","age":30,"year_of_study":2,"email":"rrickerddq@businessinsider.com"}, +{"name":"Delora","surname":"McGrory","student_ID":692175,"gender":"Female","age":23,"year_of_study":4,"email":"dmcgrorydr@last.fm"}, +{"name":"Konstance","surname":"Hagerty","student_ID":240240,"gender":"Female","age":24,"year_of_study":3,"email":"khagertyds@xing.com"}, +{"name":"Geoffry","surname":"Alexandre","student_ID":745094,"gender":"Male","age":19,"year_of_study":1,"email":"galexandredt@dyndns.org"}, +{"name":"Leland","surname":"Asche","student_ID":855794,"gender":"Female","age":19,"year_of_study":4,"email":"laschedu@lulu.com"}, +{"name":"Philipa","surname":"Grimshaw","student_ID":811210,"gender":"Female","age":23,"year_of_study":2,"email":"pgrimshawdv@angelfire.com"}] \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/test.py b/08-DictionariesStacksAndQueues/test.py new file mode 100644 index 000000000..70f60e54d --- /dev/null +++ b/08-DictionariesStacksAndQueues/test.py @@ -0,0 +1 @@ +print("cokolwiek") \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie10.py b/08-DictionariesStacksAndQueues/zadanie10.py index 32a6befcc..a292b3ae1 100644 --- a/08-DictionariesStacksAndQueues/zadanie10.py +++ b/08-DictionariesStacksAndQueues/zadanie10.py @@ -3,5 +3,6 @@ with open("data.json") as file: data = json.load(file) for i in data: - for key,value in i.items(): - print(f"{key} : {value}") + if i["country"] == "Poland": + for key, value in i.items(): + print(f"{key}: {value}") diff --git a/08-DictionariesStacksAndQueues/zadanie12.py b/08-DictionariesStacksAndQueues/zadanie12.py new file mode 100644 index 000000000..b9a976927 --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie12.py @@ -0,0 +1,12 @@ +person = { + "name": "Marek", + "surname": "Banach", + "age": 25, + "hobby": ["swimming","excursions"], + "married": True, + "phone":{"landline":"123444321","mobile":"777888999"} + } +sum = 0 +for i in person: + sum+=1 +print (sum) \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie14.py b/08-DictionariesStacksAndQueues/zadanie14.py new file mode 100644 index 000000000..744b07583 --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie14.py @@ -0,0 +1,9 @@ +winter_semester = { + "math":60, + "programming":30, + "history":15 +} +sum= 0 +for i in winter_semester.values(): + sum+=i +print(f'The total number of hours in the winter semester is {sum}') \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie15.py b/08-DictionariesStacksAndQueues/zadanie15.py new file mode 100644 index 000000000..5dc4fb1f9 --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie15.py @@ -0,0 +1,14 @@ +basic_data = { + "name":"Barbara", + "age":21 +} + +advanced_data = { + "status":"student", + "married":False, + "interest":["reading","swimming"] +} +person = {} +person.update(basic_data) +person.update(advanced_data) +print(person) \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie16.py b/08-DictionariesStacksAndQueues/zadanie16.py new file mode 100644 index 000000000..b94ad84bb --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie16.py @@ -0,0 +1,38 @@ +Hotels_in_Krakow = [ + {"name":"Sky","price":320.00}, + {"name":"Metropol","price":480.00}, + {"name":"New Port","price":420.00}, + {"name":"Aparthotel","price":390.00} +] +hotels_in_Sopot = [ + {"name":"Focus","price":510.00}, + {"name":"Aqua","price":345.00}, + {"name":"La Boutique","price":390.00}, + {"name":"Marina","price":410.00} +] +def hotel_list(hotels): + arr1 = [] + if hotels == "Kraków": + for i in Hotels_in_Krakow: + arr1.append(i["name"]) + if hotels == "Sopot": + for i in hotels_in_Sopot: + arr1.append(i["name"]) + return ", ".join(arr1) +def avg_price(hotels): + sum = 0 + count = 0 + if hotels == "Kraków": + for i in Hotels_in_Krakow: + sum += i["price"] + count+=1 + if hotels == "Sopot": + for i in hotels_in_Sopot: + sum += i["price"] + count+=1 + return int(sum/count) +print(f"Hotels in Krakow: {hotel_list("Kraków")}") +print(f"Average hotel price in Krakow: {avg_price("Kraków")}") +print(f"Hotels in Sopot: {hotel_list("Sopot")}") +print(f"Average hotel price in Sopot: {avg_price("Sopot")}") +print(f"Cheaper hotels in: {"Kraków" if avg_price("Kraków") 0: + remainder = a % 2 + push(remainder) + a //= 2 + + binary_number = "" + while not empty(): + binary_digit = str(pop()) + binary_number += binary_digit + + print("Natural number:", number) + print("Binary number:", binary_number) + +convert_to_binary(18) diff --git a/08-DictionariesStacksAndQueues/zadanie25.py b/08-DictionariesStacksAndQueues/zadanie25.py new file mode 100644 index 000000000..22f9b5faa --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie25.py @@ -0,0 +1,32 @@ +stack = [] + +def push(value): + stack.append(value) + +def pop(): + if not empty(): + return stack.pop() + else: + return None + +def empty(): + return len(stack) == 0 + +rpn = str(input("Enter formula: ")) +for i in rpn: + if i.isdecimal(): + push(i) + elif i == "+": + push(int(pop())+int(pop())) + elif i == "-": + pop1 = int(pop()) + pop2= int(pop()) + push(pop2-pop1) + elif i == "*": + push(int(pop())*int(pop())) + elif i == "/": + pop1 = int(pop()) + pop2 = int(pop()) + push(pop2/pop1) + if i == "=": + print(*stack) \ No newline at end of file diff --git a/08-DictionariesStacksAndQueues/zadanie26.py b/08-DictionariesStacksAndQueues/zadanie26.py new file mode 100644 index 000000000..a52d81ad5 --- /dev/null +++ b/08-DictionariesStacksAndQueues/zadanie26.py @@ -0,0 +1,15 @@ +from my_queue import enqueue, dequeue, is_empty, display + +display() +enqueue(2) +enqueue(14) +enqueue(9) +display() +dequeue() +display() +enqueue(31) +enqueue(6) +display() +dequeue() +dequeue() +display() \ No newline at end of file From 761bc5c7c75b5d7d684e4edd31f0f129597d0e88 Mon Sep 17 00:00:00 2001 From: s-013-30 Date: Wed, 6 Dec 2023 18:12:20 +0100 Subject: [PATCH 7/9] During Class --- 10-ObjectOrientedProgramming/zadanie10.py | 13 ++++++++++ 10-ObjectOrientedProgramming/zadanie11.py | 16 ++++++++++++ 10-ObjectOrientedProgramming/zadanie7.py | 29 ++++++++++++++++++++++ 10-ObjectOrientedProgramming/zadanie8.py | 30 +++++++++++++++++++++++ 10-ObjectOrientedProgramming/zadanie9.py | 10 ++++++++ 10-ObjectOrientedProgramming/zadnie12.py | 15 ++++++++++++ 6 files changed, 113 insertions(+) create mode 100644 10-ObjectOrientedProgramming/zadanie10.py create mode 100644 10-ObjectOrientedProgramming/zadanie11.py create mode 100644 10-ObjectOrientedProgramming/zadanie7.py create mode 100644 10-ObjectOrientedProgramming/zadanie8.py create mode 100644 10-ObjectOrientedProgramming/zadanie9.py create mode 100644 10-ObjectOrientedProgramming/zadnie12.py diff --git a/10-ObjectOrientedProgramming/zadanie10.py b/10-ObjectOrientedProgramming/zadanie10.py new file mode 100644 index 000000000..088d7bbb8 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie10.py @@ -0,0 +1,13 @@ +class Piece(): + def __init__(self, artist, track_title, album, year): + self.performer = artist + self.song = track_title + self.album = album + self.year = year + def __str__(self): + return "Performer: "+self.performer+"\n"+"Song: "+self.song+"\n"+"Album: "+self.album+"\n"+"Year: "+self.year + +piece = Piece("Queen", "Bohemian Rhapsody", "A Night at the Opera", "1975") +piece1 = Piece("Queen", "Sweet Lady", "A Night at the Opera", "1975") +print(piece) +print(piece1) \ No newline at end of file diff --git a/10-ObjectOrientedProgramming/zadanie11.py b/10-ObjectOrientedProgramming/zadanie11.py new file mode 100644 index 000000000..ca96377de --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie11.py @@ -0,0 +1,16 @@ +class TV(): + def __init__(self): + self.is_on = False + def turn_on(self): + self.is_on = True + def turn_off(self): + self.is_on = False + def show_status(self): + print(f'TV is {"on" if self.is_on else "off"}') + +tv = TV() +tv.show_status() +tv.turn_on() +tv.show_status() +tv.turn_off() +tv.show_status() diff --git a/10-ObjectOrientedProgramming/zadanie7.py b/10-ObjectOrientedProgramming/zadanie7.py new file mode 100644 index 000000000..97aff5c15 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie7.py @@ -0,0 +1,29 @@ +class Book(): + def __init__(self,title,author,pages): + self.title = title + self.author = author + self.pages = pages + self.current_page = 1 + self.is_open = False + def open(self): + self.is_open = True + def close(self): + self.is_open = False + def change_page(self,page): + self.current_page = page + +book = Book( + "Harry Potter and the Philosopher's Stone", + "J. K. Rowling",223) + +print(f"My favorite book is {book.title}, ",end="") +print(f"written by {book.author}. ",end="") +print(f"This book has {book.pages} pages.") + +book.open() +book.change_page(15) + +if book.is_open: + print(f"Reading the book, page {book.current_page}") +else: + print("I am going to read the book later.") diff --git a/10-ObjectOrientedProgramming/zadanie8.py b/10-ObjectOrientedProgramming/zadanie8.py new file mode 100644 index 000000000..bae6c4b93 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie8.py @@ -0,0 +1,30 @@ +class Phone(): + def __init__(self, brand, color, weight): + self.brand = brand + self.color = color + self.weight = weight + self.is_on = False + self.missed_calls = 0 + def on(self): + self.is_on = True + def off(self): + self.is_on = False + def missing_calls(self,missed): + self.missed_calls = missed +phone = Phone( + "iPhone", "black", "204g" +) +print(f"My phone's brand is {phone.brand}. ", end ="") +print(f"It's {phone.color}. ", end = "") +print(f"It weights {phone.weight}.") + +phone.on() +phone.missing_calls(15) + +if phone.is_on: + if phone.missed_calls == 0: + print("I have no missed calls.") + else: + print(f"I have {phone.missed_calls} missed calls! My mum will kill me!") +else: + print("My phone is off.") \ No newline at end of file diff --git a/10-ObjectOrientedProgramming/zadanie9.py b/10-ObjectOrientedProgramming/zadanie9.py new file mode 100644 index 000000000..5adf045d4 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie9.py @@ -0,0 +1,10 @@ +class University(): + + def __init__(self, name): + self.name = name + + def __str__(self): + return self.name + " is the best!" + +my_university = University('UEK') +print(my_university) diff --git a/10-ObjectOrientedProgramming/zadnie12.py b/10-ObjectOrientedProgramming/zadnie12.py new file mode 100644 index 000000000..5e4c21dff --- /dev/null +++ b/10-ObjectOrientedProgramming/zadnie12.py @@ -0,0 +1,15 @@ +class TV(): + def __init__(self): + self.is_on = False + self.chanel_number = 1 + def turn_on(self): + self.is_on = True + def turn_off(self): + self.is_on = False + def show_status(self): + print(f'TV is {"on, chanel number: "f"{self.chanel_number}" if self.is_on else "off"}') + +tv = TV() +tv.turn_on() +tv.chanel_number = 15 +tv.show_status() \ No newline at end of file From ddbccac68603eb58eeb50c73f5223bd92fe7290d Mon Sep 17 00:00:00 2001 From: GabrielaSocha <232490@student.uek.krakow.pl> Date: Sat, 6 Jan 2024 21:26:35 +0100 Subject: [PATCH 8/9] Classes --- 10-ObjectOrientedProgramming/zadanie17.py | 35 +++++++++++++++++ .../zadnie12,13,14,15.py | 38 +++++++++++++++++++ 10-ObjectOrientedProgramming/zadnie12.py | 15 -------- 3 files changed, 73 insertions(+), 15 deletions(-) create mode 100644 10-ObjectOrientedProgramming/zadanie17.py create mode 100644 10-ObjectOrientedProgramming/zadnie12,13,14,15.py delete mode 100644 10-ObjectOrientedProgramming/zadnie12.py diff --git a/10-ObjectOrientedProgramming/zadanie17.py b/10-ObjectOrientedProgramming/zadanie17.py new file mode 100644 index 000000000..d5b0eac9a --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie17.py @@ -0,0 +1,35 @@ +class Phone(): + def __init__(self, color, brand, model): + self.color = color + self.brand = brand + self.model = model + self.power_status = False + def __str__(self): + return f"{self.color} {self.brand} {self.model} {'is on' if self.power_status == True else 'is off'}" + def is_on(self): + self.power_status = True + def is_off(self): + self.power_status = False + def calling(self, number): + if self.power_status: + print(f'{self.color} {self.brand} {self.model} is currently calling number: {number}...') + else: + print("The phone is off") +phone1 = Phone("Black", "Samsung", "Galaxy S2") +phone2 = Phone("Blue", "Xiaomi", "Note 8T") + +print(phone1) +phone1.is_on() +print(phone1) +phone1.calling('514556695') +phone1.is_off() +print(phone1) + +print(phone2) +phone2.is_on() +print(phone2) +phone2.calling('514556695') +phone2.is_off() +print(phone2) + + \ No newline at end of file diff --git a/10-ObjectOrientedProgramming/zadnie12,13,14,15.py b/10-ObjectOrientedProgramming/zadnie12,13,14,15.py new file mode 100644 index 000000000..5ab2b0381 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadnie12,13,14,15.py @@ -0,0 +1,38 @@ +class TV(): + def __init__(self): + self.is_on = False + self.channel_number = 1 + self.channel_list = [] + def set_channel(self, new_channel_no): + self.channel_number = new_channel_no + def turn_on(self): + self.is_on = True + def turn_off(self): + self.is_on = False + def show_status(self): + if self.is_on: + print(f'TV is on, channel {self.channel_number}', end="") + if len(self.channel_list)>0 and len(self.channel_list)>=self.channel_number: + print(f'({self.channel_list[self.channel_number-1]})') + else: + print("TV is off") + def set_channels(self, channel_list): + self.channel_list = channel_list + def show_channel(self): + if len(self.channel_list) == 0: + print('There is no avaliable channels, please set the channels.') + else: + print("Channel list:") + for i in range(len(self.channel_list)): + print(f'{i+1}. {self.channel_list[i]}') + +tv = TV() +tv.show_status() +tv.turn_on() +tv.show_channel() +tv.set_channels(["TVP1", "TVP2", "Polsat", "TVN", "Filmbox", "Discovery"]) +tv.show_channel() +tv.set_channel(3) +tv.show_status() +tv.turn_off() +tv.show_status() diff --git a/10-ObjectOrientedProgramming/zadnie12.py b/10-ObjectOrientedProgramming/zadnie12.py deleted file mode 100644 index 5e4c21dff..000000000 --- a/10-ObjectOrientedProgramming/zadnie12.py +++ /dev/null @@ -1,15 +0,0 @@ -class TV(): - def __init__(self): - self.is_on = False - self.chanel_number = 1 - def turn_on(self): - self.is_on = True - def turn_off(self): - self.is_on = False - def show_status(self): - print(f'TV is {"on, chanel number: "f"{self.chanel_number}" if self.is_on else "off"}') - -tv = TV() -tv.turn_on() -tv.chanel_number = 15 -tv.show_status() \ No newline at end of file From cb29eac59cacf80fb92b83aa0d798bd8345677a9 Mon Sep 17 00:00:00 2001 From: GabrielaSocha <232490@student.uek.krakow.pl> Date: Sun, 7 Jan 2024 00:05:17 +0100 Subject: [PATCH 9/9] Classes --- .../__pycache__/ebook.cpython-312.pyc | Bin 0 -> 1921 bytes 10-ObjectOrientedProgramming/ebook.py | 21 +++++++++++++ 10-ObjectOrientedProgramming/main.py | 12 ++++++++ 10-ObjectOrientedProgramming/zadanie 19.py | 29 ++++++++++++++++++ 10-ObjectOrientedProgramming/zadanie 20.py | 25 +++++++++++++++ 10-ObjectOrientedProgramming/zadanie 23.py | 14 +++++++++ 10-ObjectOrientedProgramming/zadanie 24.py | 16 ++++++++++ .../{zadanie17.py => zadanie16.py} | 0 10-ObjectOrientedProgramming/zadanie21.py | 26 ++++++++++++++++ 10-ObjectOrientedProgramming/zadanie25.py | 16 ++++++++++ ...2,13,14,15.py => zadnie12,13,14,15, 17.py} | 24 +++++++++++++-- 11 files changed, 181 insertions(+), 2 deletions(-) create mode 100644 10-ObjectOrientedProgramming/__pycache__/ebook.cpython-312.pyc create mode 100644 10-ObjectOrientedProgramming/ebook.py create mode 100644 10-ObjectOrientedProgramming/main.py create mode 100644 10-ObjectOrientedProgramming/zadanie 19.py create mode 100644 10-ObjectOrientedProgramming/zadanie 20.py create mode 100644 10-ObjectOrientedProgramming/zadanie 23.py create mode 100644 10-ObjectOrientedProgramming/zadanie 24.py rename 10-ObjectOrientedProgramming/{zadanie17.py => zadanie16.py} (100%) create mode 100644 10-ObjectOrientedProgramming/zadanie21.py create mode 100644 10-ObjectOrientedProgramming/zadanie25.py rename 10-ObjectOrientedProgramming/{zadnie12,13,14,15.py => zadnie12,13,14,15, 17.py} (64%) diff --git a/10-ObjectOrientedProgramming/__pycache__/ebook.cpython-312.pyc b/10-ObjectOrientedProgramming/__pycache__/ebook.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..80bb04af43b6fb156e4d38c97a70919864024ae8 GIT binary patch literal 1921 zcmb7FO=ufe5PrMbm1Ie_UO{rKRpkDIwrOp$WP4*julKUL@00V(Bf0(pzd%0zP%-t)w`rd+1=#%=?>} zo$q^3zx4OV2*@8leZxKr5%K~D9Z}lO{z-6ZL?+jWNj8ZoJ(Gi#MN*NqP_DBdt<)au zPk>V+j4VnfS(Hs_lPrcz8MI=CK&z$#I&7+-BbBfg@zuE{+g{Igl42Z814WVj8=z{W zDpiRNULaK&MxAt|8iG-~ECMCM2u}(zac4Jfg=nG7pLlRyQ+?IVy9MTljk3FHb3a}( zR+w&;i%X3AiCmd;X1O{}`jNb&+a+dcimy1Vu*|~{f=5tAK{=R!f*ibWzMH+}Fz#fp z8B6)>2h3S_?NYW>I-foN&g9LdHI{R4@;n4)=7-!~;YP8Tw^p(YzkjM!@uRw)xALy8 zdjp~;Q=Kt>pOXf4pR|sjdZ2s}YYmTpiMLLVKTv*+o@|YbqJ6t{0;a!A?88=)>-Go+ z-HslEK`rPLZW02WkuwWVC61H;69?nqY049z{XYDB9jo+`L1Enq(SbhL1eKjQjk);% zjQ(ftd7gqpd=S*(ys=!tc36-&6(oK=gS9%H%;Kwq%v~Ug39O z{_v^xhN|R&2Wtp$kF1}9a)+zrW9dIm_CpWk*DS3N7YQQ-IeJvgqpR@XJ0B5KejIw% z##171M0;aiQ!?Jb!Ybp8<{fHVg$niJ6lv_x0$X;yGk5GV%^8+uyOcA-q|4kcQiF=V zniMhC6u|?Iy%h}i)e_HJt|kj&_~GD|IM_1UW{85ZyjXw{`p6px?=0{lp8RU&^O;ui zt!9!ol63o0BdI-EXim;HCTDk&v#r!nGc~r88r#0zNS*sFHMW~N{%~O1ZKkIi>FFPp z=H=@R_)A}}kKg$DTz&ZV^VCPXiNX4@OV1P2|7IIz7MOnrPK~(TTOj&=1kTvqqY;4> zcwN@;zV`^MD6oR;?-4GWswJ6W*b#vp$kHBpL>|WuW2r?m2U6No({u^YQt7JUP;V#z zZHfYz0u{v5SMc8X;Q%aee2OBP27ujuunK^;Z2_E!I1O;3T9^+*2|dr&A&h&kUEEo< z@9B&5Lu5 zi*xl0^Y!_~I?FfN#tz$P+%@X=K7C2ZUFoU}=Bm7cW>qf8uh3NFzXAi3E3$`c$xr0J z3F)iK0_ltv#aGfYicHu2n64LXvs^$wq3auEqY$icxPFA=Q^&Ddj=y7k6x359!iZ;$ zBTIxriZ~;nHp!l>s-t@eNgdf!B=D4odU-!3sqOq?dq$Ijvtt+lpF0unAUYFN^Bz9~ Xb0R3V_GL(tq*wBgRF(G#YH{QrS|g7` literal 0 HcmV?d00001 diff --git a/10-ObjectOrientedProgramming/ebook.py b/10-ObjectOrientedProgramming/ebook.py new file mode 100644 index 000000000..6eb071dee --- /dev/null +++ b/10-ObjectOrientedProgramming/ebook.py @@ -0,0 +1,21 @@ +class Ebook(): + def __init__(self, title, author, page_number): + self.title = title + self.author = author + self.page_number = page_number + self.current_page = 1 + self.is_open = False + def open_book(self): + self.is_open = True + def close_book(self): + self.is_open = False + def read(self, number): + if self.is_open: + if self.current_page + number <= self.page_number: + self.current_page += number + else: + print(f"There is only {self.page_number-self.current_page} pages left") + else: + print("You cannot read from a closed book") + def show_status(self): + print(f"'{self.title}' by {self.author} has {self.page_number} pages. The book is {'open' if self.is_open else 'closed'}. You are currentlly on a page number {self.current_page}") diff --git a/10-ObjectOrientedProgramming/main.py b/10-ObjectOrientedProgramming/main.py new file mode 100644 index 000000000..14ce1eeaf --- /dev/null +++ b/10-ObjectOrientedProgramming/main.py @@ -0,0 +1,12 @@ +from ebook import Ebook +book = Ebook("After", "Anna Todd", 823) + +book.show_status() +book.open_book() +book.show_status() +book.read(59) +book.show_status() +book.close_book() +book.show_status() +book.read(59) +book.show_status() diff --git a/10-ObjectOrientedProgramming/zadanie 19.py b/10-ObjectOrientedProgramming/zadanie 19.py new file mode 100644 index 000000000..365f36716 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie 19.py @@ -0,0 +1,29 @@ +import random +class Thermometer(): + def __init__(self): + self.temperature = 34.0 + self.is_on = False + def measure(self): + if self.is_on: + self.temperature = round(random.uniform(34.0, 42.0), 1) + else: + print("Ypu can't measure temperature when the thermometer is off") + def display(self): + if self.is_on: + print(f'Temperature: {self.temperature}', end="") + if 37<=self.temperature<41: + print(' (fever)') + elif self.temperature >=41: + print(' CRITICAL TEMPERATURE!') + else: + print("") + def on(self): + self.is_on = True + def off(self): + self.is_on = False + +therm = Thermometer() +therm.on() +therm.measure() +therm.display() +therm.off() \ No newline at end of file diff --git a/10-ObjectOrientedProgramming/zadanie 20.py b/10-ObjectOrientedProgramming/zadanie 20.py new file mode 100644 index 000000000..8f8b9dc1d --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie 20.py @@ -0,0 +1,25 @@ +class Bank(): + def __init__(self, number): + self.number = number + self.balance = 0.00 + def deposit(self, amount): + self.balance+=amount + def withdraw(self, amount_w): + if self.balance - amount_w >=0: + self.balance-=amount_w + else: + print("Insufficient funds on the account") + def show_status(self): + print(f"Bank account no: {self.number}") + print(f"Balance: PLN {self.balance}") + +acc = Bank("12 3456 5555 9090 1111 0000 7722") +acc.show_status() +acc.deposit(25.00) +acc.show_status() +acc.withdraw(37.00) +acc.show_status() +acc.withdraw(14) +acc.show_status() + + diff --git a/10-ObjectOrientedProgramming/zadanie 23.py b/10-ObjectOrientedProgramming/zadanie 23.py new file mode 100644 index 000000000..d2b35ac76 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie 23.py @@ -0,0 +1,14 @@ +class C(): + def __init__(self, name, surname, age, seniority): + self.name = name + self.surname = surname + self.age = age + self.seniority = seniority + def __str__(self): + if self.age <18: + return f"{self.surname.lower()}{self.name[0].lower()}{self.seniority}" + else: + return f"{self.surname.upper()}{self.name[0].upper()}{self.seniority}" + +print(C("Anna","May",17,7)) +print(C("George","Brown",21,4)) \ No newline at end of file diff --git a/10-ObjectOrientedProgramming/zadanie 24.py b/10-ObjectOrientedProgramming/zadanie 24.py new file mode 100644 index 000000000..01d6176ca --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie 24.py @@ -0,0 +1,16 @@ +class C: + def __init__(self, coordinates): + self.coordinates = coordinates + def m(self, n): + count = 0 + for points in self.coordinates: + x, y = points + if x>0 and y>0: + count += 1 + if count >= n: + return True + return False + + +points = C([[2, 3], [1, 8], [-6, 4], [3, -7]]) +print(points.m(3)) \ No newline at end of file diff --git a/10-ObjectOrientedProgramming/zadanie17.py b/10-ObjectOrientedProgramming/zadanie16.py similarity index 100% rename from 10-ObjectOrientedProgramming/zadanie17.py rename to 10-ObjectOrientedProgramming/zadanie16.py diff --git a/10-ObjectOrientedProgramming/zadanie21.py b/10-ObjectOrientedProgramming/zadanie21.py new file mode 100644 index 000000000..1f1d9fb8d --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie21.py @@ -0,0 +1,26 @@ +import statistics +class Statistics(): + def __init__(self, numbers): + self.numbers = numbers + def maximum(self): + print(f"Maximum: {max(self.numbers)}") + def minimum(self): + print(f"Minimum: {min(self.numbers)}") + def arithmetic(self): + print(f"Arithmetic mean: {sum(self.numbers)/len(self.numbers)}") + def median(self): + print(f"Median: {statistics.median(self.numbers)}") + def add(self): + number = int(input("Enter number you want to add to the set: ")) + self.numbers.append(number) + def display(self): + print(" ".join(map(str, self.numbers))) + +stat = Statistics([12, 37, 6, 9]) +stat.display() +stat.add() +stat.display() +stat.maximum() +stat.minimum() +stat.arithmetic() +stat.median() diff --git a/10-ObjectOrientedProgramming/zadanie25.py b/10-ObjectOrientedProgramming/zadanie25.py new file mode 100644 index 000000000..81c40ce83 --- /dev/null +++ b/10-ObjectOrientedProgramming/zadanie25.py @@ -0,0 +1,16 @@ +class C(): + def __init__(self, sectors): + self.sectors = sectors + def m1(self, s, n): + self.sectors.update({s:n}) + def m2(self, s): + count = 0 + for letter in s: + if letter in self.sectors.keys(): + count+=self.sectors[letter] + return count + +stadion = C({"A":120,"D":150,"G":90,"K":110}) +stadion.m1("G",130) +print(stadion.m2("GD")) +print(stadion.m2("KEJ")) diff --git a/10-ObjectOrientedProgramming/zadnie12,13,14,15.py b/10-ObjectOrientedProgramming/zadnie12,13,14,15, 17.py similarity index 64% rename from 10-ObjectOrientedProgramming/zadnie12,13,14,15.py rename to 10-ObjectOrientedProgramming/zadnie12,13,14,15, 17.py index 5ab2b0381..778898b34 100644 --- a/10-ObjectOrientedProgramming/zadnie12,13,14,15.py +++ b/10-ObjectOrientedProgramming/zadnie12,13,14,15, 17.py @@ -3,6 +3,7 @@ def __init__(self): self.is_on = False self.channel_number = 1 self.channel_list = [] + self.volume = 0 def set_channel(self, new_channel_no): self.channel_number = new_channel_no def turn_on(self): @@ -13,7 +14,8 @@ def show_status(self): if self.is_on: print(f'TV is on, channel {self.channel_number}', end="") if len(self.channel_list)>0 and len(self.channel_list)>=self.channel_number: - print(f'({self.channel_list[self.channel_number-1]})') + print(f'({self.channel_list[self.channel_number-1]})', end="") + print(f", VOLUME: {self.volume}") else: print("TV is off") def set_channels(self, channel_list): @@ -25,6 +27,16 @@ def show_channel(self): print("Channel list:") for i in range(len(self.channel_list)): print(f'{i+1}. {self.channel_list[i]}') + def volume_increase(self): + if self.volume < 10: + self.volume+=1 + else: + print("Volume cannot be further increased due to getting to the top of the volume scale") + def volume_decrease(self): + if self.volume > 0: + self.volume-=1 + else: + print("Volume cannot be further decreased due to getting to the bottom of the volume scale") tv = TV() tv.show_status() @@ -32,7 +44,15 @@ def show_channel(self): tv.show_channel() tv.set_channels(["TVP1", "TVP2", "Polsat", "TVN", "Filmbox", "Discovery"]) tv.show_channel() -tv.set_channel(3) +tv.set_channel(2) +tv.show_status() +tv.volume_increase() +tv.show_status() +tv.volume_increase() +tv.show_status() +tv.volume_increase() +tv.show_status() +tv.volume_decrease() tv.show_status() tv.turn_off() tv.show_status()