def Na_Dziewiec( self ) :
print ( "Startuje funkcja dziewiec" )
wybor = [ 50 ] * 6 + [ 60 ] * 3
while True :
wo = int ( input ( "Sztuki na WO: " ) )
if self .suma == 480 :
print ( "Suma osiagnela 480, czyli 8h." )
break
elif self .suma == 300 :
return self .Wynik_Rulonow ( )
elif self .suma == 310 :
return self .Wynik_Rulonow ( )
elif self .suma == 320 :
return self .Wynik_Rulonow ( )
elif self .suma == 330 :
return self .Wynik_Rulonow ( )
elif self .suma == 340 :
return self .Wynik_Rulonow ( )
elif self .suma == 350 :
return self .Wynik_Rulonow ( )
elif self .suma == 360 :
return self .Wynik_Rulonow ( )
elif wo == 2 :
wybrane = sum ( random .sample ( wybor, 2 ) )
print ( "Wybrane w wybrane: " , wybrane)
if wybrane == 100 :
print ( "Sa 2 szt. na czas 1.40" )
self .suma += wybrane
print ( "Suma wynosi: " , self .suma )
elif wybrane == 110 :
print ( "Sa 2 szt. na czas 1.50" )
self .suma += wybrane
print ( "Suma wynosi: " , self .suma )
elif wybrane == 120 :
print ( "Sa 2 szt. na czas 2:00" )
self .suma += wybrane
print ( "Suma wynosi: " , self .suma )
else :
print ( "Jakis blad!" )
ICAgIGRlZiBOYV9Eemlld2llYyhzZWxmKToKICAgICAgICBwcmludCgiU3RhcnR1amUgZnVua2NqYSBkemlld2llYyIpCiAgICAgICAgd3lib3IgPSBbNTBdICogNiArIFs2MF0gKiAzCgoKCiAgICAgICAgd2hpbGUgVHJ1ZToKICAgICAgICAgICAgd28gPSBpbnQoaW5wdXQoIlN6dHVraSBuYSBXTzogIikpCgogICAgICAgICAgICBpZiBzZWxmLnN1bWEgPT0gNDgwOgogICAgICAgICAgICAgICAgcHJpbnQoIlN1bWEgb3NpYWduZWxhIDQ4MCwgY3p5bGkgOGguIikKICAgICAgICAgICAgICAgIGJyZWFrCgogICAgICAgICAgICBlbGlmIHNlbGYuc3VtYSA9PSAzMDA6CiAgICAgICAgICAgICAgICByZXR1cm4gc2VsZi5XeW5pa19SdWxvbm93KCkKICAgICAgICAgICAgZWxpZiBzZWxmLnN1bWEgPT0gMzEwOgogICAgICAgICAgICAgICAgcmV0dXJuIHNlbGYuV3luaWtfUnVsb25vdygpCiAgICAgICAgICAgIGVsaWYgc2VsZi5zdW1hID09IDMyMDoKICAgICAgICAgICAgICAgIHJldHVybiBzZWxmLld5bmlrX1J1bG9ub3coKQogICAgICAgICAgICBlbGlmIHNlbGYuc3VtYSA9PSAzMzA6CiAgICAgICAgICAgICAgICByZXR1cm4gc2VsZi5XeW5pa19SdWxvbm93KCkKICAgICAgICAgICAgZWxpZiBzZWxmLnN1bWEgPT0gMzQwOgogICAgICAgICAgICAgICAgcmV0dXJuIHNlbGYuV3luaWtfUnVsb25vdygpCiAgICAgICAgICAgIGVsaWYgc2VsZi5zdW1hID09IDM1MDoKICAgICAgICAgICAgICAgIHJldHVybiBzZWxmLld5bmlrX1J1bG9ub3coKQogICAgICAgICAgICBlbGlmIHNlbGYuc3VtYSA9PSAzNjA6CiAgICAgICAgICAgICAgICByZXR1cm4gc2VsZi5XeW5pa19SdWxvbm93KCkKCiAgICAgICAgICAgIGVsaWYgd28gPT0gMjoKICAgICAgICAgICAgICAgIHd5YnJhbmUgPSBzdW0ocmFuZG9tLnNhbXBsZSh3eWJvciwgMikpCiAgICAgICAgICAgICAgICBwcmludCgiV3licmFuZSB3IHd5YnJhbmU6ICIsIHd5YnJhbmUpCgogICAgICAgICAgICAgICAgaWYgd3licmFuZSA9PSAxMDA6CiAgICAgICAgICAgICAgICAgICAgcHJpbnQoIlNhIDIgc3p0LiBuYSBjemFzIDEuNDAiKQogICAgICAgICAgICAgICAgICAgIHNlbGYuc3VtYSArPSB3eWJyYW5lCiAgICAgICAgICAgICAgICAgICAgcHJpbnQoIlN1bWEgd3lub3NpOiAiLHNlbGYuc3VtYSkKICAgICAgICAgICAgICAgIGVsaWYgd3licmFuZSA9PSAxMTA6CiAgICAgICAgICAgICAgICAgICAgcHJpbnQoIlNhIDIgc3p0LiBuYSBjemFzIDEuNTAiKQogICAgICAgICAgICAgICAgICAgIHNlbGYuc3VtYSArPSB3eWJyYW5lCiAgICAgICAgICAgICAgICAgICAgcHJpbnQoIlN1bWEgd3lub3NpOiAiLCBzZWxmLnN1bWEpCiAgICAgICAgICAgICAgICBlbGlmIHd5YnJhbmUgPT0gMTIwOgogICAgICAgICAgICAgICAgICAgIHByaW50KCJTYSAyIHN6dC4gbmEgY3phcyAyOjAwIikKICAgICAgICAgICAgICAgICAgICBzZWxmLnN1bWEgKz0gd3licmFuZQogICAgICAgICAgICAgICAgICAgIHByaW50KCJTdW1hIHd5bm9zaTogIiwgc2VsZi5zdW1hKQogICAgICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgICAgICBwcmludCgiSmFraXMgYmxhZCEiKQ==
compilation info
Traceback (most recent call last):
File "/usr/lib/python3.5/py_compile.py", line 125, in compile
_optimize=optimize)
File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "./prog.py", line 1
def Na_Dziewiec(self):
^
IndentationError: unexpected indent
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.5/py_compile.py", line 129, in compile
raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: unexpected indent (prog.py, line 1)
stdout