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.
deep web drug links tor markets 2021
darknet drug links darknet websites
darknet market list deep web markets
darkmarket 2022 darknet market
darkmarket url dark web market links
darkmarket 2022 darkmarket link
darknet websites darkmarket link
best darknet markets dark market link
dark web markets dark web link
darknet market lists dark web market list
dark market dark market 2022
bitcoin dark web darknet market lists
darknet drug market darknet market lists
best darknet markets darkmarket link
darknet drug store dark market onion
darknet marketplace dark market 2021
darkmarket darkmarket list
darkmarket tor dark web
darknet websites darknet market
dark web markets darknet drug store
dark market dark market 2021
bitcoin dark web darkmarket url
tor market links drug markets onion
darkmarket 2021 dark web markets
dark web link drug markets onion
dark market deep web markets
tor market url darknet market links
darkmarket link dark market link
best darknet markets darkmarket url
dark markets 2022 tor market url
drug markets onion asap market
dark web markets drug markets onion
darknet market darkmarket url
dark market dark web link
darknet market links darknet market links
darkmarket link deep web drug store
deep web drug markets darknet drug market
darknet drug links dark market 2022
tor markets links darknet market links
dark market 2022 deep web drug links
dark market 2022 tor dark web
dark market onion dark web drug marketplace
deep web drug url darknet market list
dark market 2021 dark market url
dark market 2021 darknet market list
darkmarket darkmarket
darknet marketplace deep web drug markets
dark market tor market links
dark market onion deep web drug markets
dark web sites bitcoin dark web