Aktywne Wpisy

keep_it_real +58
Treść przeznaczona dla osób powyżej 18 roku życia...

RiverStar +37
źródło: 1000006085
PobierzSkopiuj link
Skopiuj link

źródło: 1000006085
PobierzRegulamin
Reklama
Kontakt
O nas
FAQ
Osiągnięcia
Ranking
jak to zrobić pythonicznie?
def.well(x):....counter = 0
....for i in x:
........if i == 'good':
............counter += 1
....if 1 <= counter <= 2:
........return 'Publish!'
....elif counter > 2:
........return 'I smell a series!'
....else:
........return 'Fail!'
counter = 0
....for i in x:
........if i == 'good':
............counter
def well(x):....c = x.count("good")....return "I smell a series!" if c > 2 else "Publish" if c > 0 else "Fail!"returnregister = {
0: 'Fail!'
1: