Pada posting sebelumnya sudah dicontohkan soal pemrograman dalam bahasa Python. Kali ini, akan ditampilkan lagi contoh berikutnya.
Soal:
Buatlah program Python untuk menampilkan pola segitiga siku-siku menggunakan for … in.
Jawab:
Pola 1
* * * * * * * * * * * * * * * * * * * * *
Jawab:
| siku_siku_1.py |
tinggi = 6
for baris in range(0, tinggi):
for kolom in range(0, tinggi-baris):
print("*", end=" ")
print("")
|
Pola 2
* * * * * * * * * * * * * * * * * * * * *
Jawab:
| siku_siku_2.py |
tinggi = 6
for baris in range(0, tinggi):
for kolom in range(0, baris+1):
print("*", end=" ")
print("")
|
Pola 3
*
* *
* * *
* * * *
* * * * *
* * * * * *
Jawab:
| siku_siku_3.py |
tinggi = 6
for baris in range(0, tinggi):
for kolom in range(1, tinggi-baris):
print(" ", end=" ")
for bintang in range(0, baris+1):
print("*", end=" ")
print("")
|
Demikian contoh pola segitiga dalam pemrograman Python. Semoga bermanfaat.
dark web market links tor dark web
drug markets onion darkmarket 2021
deep web drug markets dark web market list
tor markets 2021 dark web sites
darkmarket 2022 darkmarket
dark web markets tor dark web
darknet drug market dark web link
darknet drug store bitcoin dark web
dark web markets dark web market links
tor dark web deep web drug markets
bitcoin dark web best darknet markets
darknet drug store darknet drug store
bitcoin dark web darknet websites
darknet market dark market list
tor markets 2021 heineken onion
heineken onion darknet market links
dark web link dark market list
darkmarket 2022 dark web sites
drug markets dark web darknet market lists
tor markets 2022 darknet market lists
dark web link deep web markets
dark web link darkmarket list
darkmarket deep web drug links
darknet websites asap darknet market
dark market 2021 dark web market list
deep web markets dark market onion
darknet market best darknet markets
dark web market list deep web drug url
dark market 2022 tor markets 2021
dark web market links tor marketplace
deep web markets dark web market links
Everʏone loves it when folks get tⲟgether and share
opinions. Gгeat website, қeep itt uр!
Here is my web blog krijg meer informatie
darknet market lists darknet websites
dark web link drug markets onion
dark web market darkmarket 2022
dark web link tor dark web
bitcoin dark web darkmarket 2021
darkmarket url dark web market links
darknet markets dark market url
tor dark web deep web drug url
darkmarket dark market 2022
dark market tor marketplace
deep web drug url darknet market lists
deep web markets deep web drug url
dark web market darknet websites
darknet markets best darknet markets
darkmarket 2022 dark web market
darkmarket link dark web link
dark web market list dark market onion