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