add last names

This commit is contained in:
AntonObersteiner 2024-06-02 21:27:26 +02:00
parent dd525cec26
commit b2e91138d4
2 changed files with 111 additions and 4 deletions

View file

@ -4,13 +4,14 @@ from random import randint, random, choice
from choice_network import Choice, FixedText, RandInt, Network
def get_first_names():
def get_names(filename):
lines = []
with open("vornamen.csv") as file:
with open(filename) as file:
lines = file.read().split("\n")
names = [
name + " "
for name in lines
if len(name) > 1
]
return names
@ -41,11 +42,11 @@ network = Network(
student = ["Student ", "Studentin ", "", "Studierende:r "],
),
student = Choice(
last_name = get_first_names(),
last_name = get_names("vornamen.csv"),
matr_nr = [""],
),
last_name = Choice(
student_mit = ["Beier ", "Behar ", "Berger "],
student_mit = get_names("nachnamen.csv"),
),
student_mit = Choice(
matr_nr = ["mit "],

106
nachnamen.csv Normal file
View file

@ -0,0 +1,106 @@
Müller
Schmidt
Schneider
Fischer
Weber
Meyer
Wagner
Becker
Schulz
Hoffmann
Schäfer
Koch
Bauer
Richter
Klein
Wolf
Schröder
Neumann
Schwarz
Zimmermann
Braun
Krüger
Hofmann
Hartmann
Lange
Schmitt
Werner
Schmitz
Krause
Meier
Lehmann
Schmid
Schulze
Maier
Köhler
Herrmann
König
Walter
Mayer
Huber
Kaiser
Fuchs
Peters
Lang
Scholz
Möller
Weiß
Jung
Hahn
Schubert
Vogel
Friedrich
Keller
Günther
Frank
Berger
Winkler
Roth
Beck
Lorenz
Baumann
Franke
Albrecht
Schuster
Simon
Ludwig
Böhm
Winter
Kraus
Martin
Schumacher
Krämer
Vogt
Stein
Jäger
Otto
Sommer
Groß
Seidel
Heinrich
Brandt
Haas
Schreiber
Graf
Schulte
Dietrich
Ziegler
Kuhn
Kühn
Pohl
Engel
Horn
Busch
Bergmann
Thomas
Voigt
Sauer
Arnold
Wolff
Pfeiffer
Nowak
Noack
Pietsch
Yılmaz
Kaya
Nguyen
1 Müller
2 Schmidt
3 Schneider
4 Fischer
5 Weber
6 Meyer
7 Wagner
8 Becker
9 Schulz
10 Hoffmann
11 Schäfer
12 Koch
13 Bauer
14 Richter
15 Klein
16 Wolf
17 Schröder
18 Neumann
19 Schwarz
20 Zimmermann
21 Braun
22 Krüger
23 Hofmann
24 Hartmann
25 Lange
26 Schmitt
27 Werner
28 Schmitz
29 Krause
30 Meier
31 Lehmann
32 Schmid
33 Schulze
34 Maier
35 Köhler
36 Herrmann
37 König
38 Walter
39 Mayer
40 Huber
41 Kaiser
42 Fuchs
43 Peters
44 Lang
45 Scholz
46 Möller
47 Weiß
48 Jung
49 Hahn
50 Schubert
51 Vogel
52 Friedrich
53 Keller
54 Günther
55 Frank
56 Berger
57 Winkler
58 Roth
59 Beck
60 Lorenz
61 Baumann
62 Franke
63 Albrecht
64 Schuster
65 Simon
66 Ludwig
67 Böhm
68 Winter
69 Kraus
70 Martin
71 Schumacher
72 Krämer
73 Vogt
74 Stein
75 Jäger
76 Otto
77 Sommer
78 Groß
79 Seidel
80 Heinrich
81 Brandt
82 Haas
83 Schreiber
84 Graf
85 Schulte
86 Dietrich
87 Ziegler
88 Kuhn
89 Kühn
90 Pohl
91 Engel
92 Horn
93 Busch
94 Bergmann
95 Thomas
96 Voigt
97 Sauer
98 Arnold
99 Wolff
100 Pfeiffer
101 Nowak
102 Noack
103 Pietsch
104 Yılmaz
105 Kaya
106 Nguyen