Begedeu Posted December 23, 2015 Report Share Posted December 23, 2015 Salut , va rog frumos sa ma ajutati la urmatoarea problema .Outputul trebuie sa fie acesta .Countdown timer: How manyseconds? 44 * * * *3 * * *2 * *1 *BLAST OFF! Nu stiu cum sa fac cu stelutele.Cel mai mult imi displac for-urile .import timeasd=int(input("Cate secunde: "))for i in range (asd,0,-1): for j in range (asd,0,-1): print("*",end='') print(i) time.sleep(1)print("Done")Sunt sigur ca ori mai trebuie un for , ori trebuie sa modific ceva la al doilea, dar nu stiu ce. Quote Link to comment Share on other sites More sharing options...
Active Members dancezar Posted December 23, 2015 Active Members Report Share Posted December 23, 2015 for i in range(4,0,-1): print "%s %s"%(i,"* "*i) time.sleep(1) Quote Link to comment Share on other sites More sharing options...
MasterLight Posted December 23, 2015 Report Share Posted December 23, 2015 (edited) . Edited July 5, 2016 by MasterLight Quote Link to comment Share on other sites More sharing options...
Begedeu Posted December 24, 2015 Author Report Share Posted December 24, 2015 Multumesc Quote Link to comment Share on other sites More sharing options...
Slark Posted December 24, 2015 Report Share Posted December 24, 2015 (edited) uite si cu while import timesteluta = "*"print("Countdown Timer")secunde = int(input("How many seconds?: "))while secunde >= 1: print(secunde, steluta * secunde) secunde -= 1 time.sleep(1)print("BLAST OFF!")si eu is incepator in python. daca vrei dami id tau prin pm si mai vorbim unu cu altu..ii alta treaba cand mai ai cu cine vorbi. Edited December 24, 2015 by Slark Quote Link to comment Share on other sites More sharing options...