Begedeu Posted December 23, 2015 Report 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
Active Members dancezar Posted December 23, 2015 Active Members Report Posted December 23, 2015 for i in range(4,0,-1): print "%s %s"%(i,"* "*i) time.sleep(1) Quote
MasterLight Posted December 23, 2015 Report Posted December 23, 2015 (edited) . Edited July 5, 2016 by MasterLight Quote
Slark Posted December 24, 2015 Report 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