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.
http://ucuzescortlar.com/gaziantep-escort/nizip-escort/
مشاور املاک گیلان املاک ستایش اطاقور
http://ucuzescortlar.com/giresun-escort/yaglidere-escort/
http://ucuzescortlar.com/giresun-escort/piraziz-escort/
مشاور املاک گیلان املاک ستایش اطاقور
Hi there friends, its fantastic paragraph concerning
teachingand fully explained, keep it up all the time.
http://ucuzescortlar.com/bitlis-escort/hizan-escort/
http://ucuzescortlar.com/eskisehir-escort/mahmudiye-escort/
http://ucuzescortlar.com/eskisehir-escort/mihaliccik-escort/
you seo backlink
http://ucuzescortlar.com/eskisehir-escort/cifteler-escort/
http://ucuzescortlar.com/eskisehir-escort/seyitgazi-escort/
http://ucuzescortlar.com/bolu-escort/mengen-escort/
http://ucuzescortlar.com/eskisehir-escort/gunyuzu-escort/
https://www.plan1.ru/balashiha/news/kak-napisat-horoshuyu-nauchnuyu-statyu-to-est-o-napisanii-s-nauchnoy-tochki-zreniya-169406/
http://ucuzescortlar.com/burdur-escort/altinyayla-escort/
http://ucuzescortlar.com/erzurum-escort/yakutiye-escort/
http://ucuzescortlar.com/burdur-escort/cavdir-escort/
http://ucuzescortlar.com/erzurum-escort/tortum-escort/
http://ucuzescortlar.com/burdur-escort/yesilova-escort/
http://ucuzescortlar.com/burdur-escort/karamanli-escort/
http://ucuzescortlar.com/erzurum-escort/hinis-escort/
http://ucuzescortlar.com/erzincan-escort/cayirli-escort/
http://ucuzescortlar.com/erzincan-escort/kemah-escort/
http://ucuzescortlar.com/erzincan-escort/refahiye-escort/
http://ucuzescortlar.com/erzincan-escort/kemaliye-escort/
http://ucuzescortlar.com/edirne-escort/havsa-escort/
http://ucuzescortlar.com/edirne-escort/kesan-escort/
http://ucuzescortlar.com/edirne-escort/suloglu-escort/
http://ucuzescortlar.com/edirne-escort/lalapasa-escort/
What’s up friends, its enormous article regarding educationand fully defined,
keep it up all the time.
سریال مرلین دوبله فارسی
อย่าห้าวให้มากไอ้เด็กเหี้ย
I’m impressed, I must say. Seldom do I come across a blog that’s both equally
educative and amusing, and let me tell you, you have
hit the nail on the head. The problem is an issue that too few people are speaking intelligently
about. Now i’m very happy I came across this during my search for something concerning this.
http://ucuzescortlar.com/diyarbakir-escort/kulp-escort/
http://ucuzescortlar.com/diyarbakir-escort/kocakoy-escort/
http://ucuzescortlar.com/duzce-escort/kaynasli-escort/
http://ucuzescortlar.com/diyarbakir-escort/silvan-escort/
http://ucuzescortlar.com/diyarbakir-escort/cinar-escort/
I truly appreciate your piece of work, Great post.
Also visit my web page bathroom slippers kmart locations closing
http://ucuzescortlar.com/diyarbakir-escort/hazro-escort/
Ahaa, its good dialogue on the topic of this article here at
this webpage, I have read all that, so at this time me also commenting here.
دمپر برقی جهت کنترل ميزان دبي هوا در کانال ها و دريچه ها به کار مي رود و عملكرد آن در كانال هاي هوا دقيقا همانند شير آب در خطوط لوله آب رساني است . بدين منظور كه هم براي قطع و وصل و هم براي كنترل ميزان جريان به كار برده مي شود.
tahviehnazari.ir
تهویه نظری
دمپر برقی جهت کنترل ميزان دبي هوا در کانال ها و دريچه ها به کار مي رود و عملكرد آن در كانال هاي هوا دقيقا همانند شير آب در خطوط لوله آب رساني است . بدين منظور كه هم براي قطع و وصل و هم براي كنترل ميزان جريان به كار برده مي شود.
tahviehnazari.ir
تهویه نظری
http://www.kibrisescort1.info/kategori/girne-escort/
http://www.burdurescort.org/kategori/golhisar-escort/
http://www.yozgatescortlar.com/kategori/candir-escort/
http://www.yozgatescortlar.com/kategori/cekerek-escort/
http://www.yozgatescortlar.com/kategori/akdagmadeni-escort/
http://www.kutahyatren.com/kategori/tavsanli-escort/