new file: 2.Erste Programme/11. Wahrheitswerte und logische Operatoren/wahrheitswerteundlogischeoperatoren.py new file: 2.Erste Programme/12. Bedinungen/bedingungen.py
		
			
				
	
	
		
			22 lines
		
	
	
		
			284 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			284 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# Bedingungen (wenn-dann-ansonsten)
 | 
						|
 | 
						|
'''
 | 
						|
1.Form
 | 
						|
 | 
						|
if Bedingung:
 | 
						|
    Anweisungsfolge
 | 
						|
 | 
						|
2.Form
 | 
						|
 | 
						|
if Bedingung:
 | 
						|
    Anweisungsfolge
 | 
						|
else:
 | 
						|
    Anweisungsfolge2 
 | 
						|
'''
 | 
						|
 | 
						|
# Das Programm bestimmt den Betrag einer ganzen Zahl1
 | 
						|
x=int(input("ganze Zahl:"))
 | 
						|
if x >= 0:
 | 
						|
    print(x)
 | 
						|
else:
 | 
						|
    print(-x) |