umbenannt: Hello World/hello world.py -> 2.Erste Programme/1.Hello World/hello world.py
umbenannt: BubbleSort Scratch/1.sb2 -> 2.Erste Programme/2.BubbleSort Scratch/1.sb2 umbenannt: BubbleSort Scratch/1.sb3 -> 2.Erste Programme/2.BubbleSort Scratch/1.sb3 umbenannt: BubbleSort Scratch/README.md -> 2.Erste Programme/2.BubbleSort Scratch/README.md
This commit is contained in:
16
2.Erste Programme/1.Hello World/hello world.py
Normal file
16
2.Erste Programme/1.Hello World/hello world.py
Normal file
@ -0,0 +1,16 @@
|
||||
print("Hallo Welt! Wie geht es dir?")
|
||||
print("1. Gut")
|
||||
print("2. Schlecht")
|
||||
|
||||
# If user input is 1, print "dir geht es sehr gut" and if input is 2, print "dir geht es sehr schlecht" and if input is neither 1 or 2, print "Bitte nur 1 oder 2 eingeben"
|
||||
|
||||
# Eingabe des Users
|
||||
input_user = input("Bitte gib 1 oder 2 ein: ")
|
||||
if input_user == "1":
|
||||
print("Dir geht es sehr gut")
|
||||
elif input_user == "2":
|
||||
print("Dir geht es sehr schlecht")
|
||||
else:
|
||||
print("Bitte nur 1 oder 2 eingeben")
|
||||
|
||||
exit()
|
BIN
2.Erste Programme/2.BubbleSort Scratch/1.sb2
Normal file
BIN
2.Erste Programme/2.BubbleSort Scratch/1.sb2
Normal file
Binary file not shown.
BIN
2.Erste Programme/2.BubbleSort Scratch/1.sb3
Normal file
BIN
2.Erste Programme/2.BubbleSort Scratch/1.sb3
Normal file
Binary file not shown.
2
2.Erste Programme/2.BubbleSort Scratch/README.md
Normal file
2
2.Erste Programme/2.BubbleSort Scratch/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
# Inspiration von diesem Projekt:
|
||||
https://scratch.mit.edu/projects/257741/
|
Reference in New Issue
Block a user