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.
tadalafil tablets 20 mg
online pharmacy dubai
low cost loans
buy genuine kamagra online
buy cialis online free shipping
generic paxil: cheap paxil – 20 mg paxil
dapoxetine tablets for sale
levitra buy online pharmacy
buy avana online
It is the best time to make some plans for the future and it is time to
be happy. I’ve read this post and if I could I desire to
suggest you some interesting things or advice.
Perhaps you can write next articles referring to this article.
I desire to read even more things about it!
I have to thank you for the efforts you have put in writing this blog.
I really hope to see the same high-grade content from you later on as well.
In truth, your creative writing abilities has encouraged me to get my own, personal site now 😉
cheap sildenafil online uk
need payday loan
I am sure this piece of writing has touched all
the internet users, its really really fastidious piece of
writing on building up new webpage.
viagra 100mg price in india online
fast cash advance
Hello would you mind letting me know which webhost you’re using?
I’ve loaded your blog in 3 completely different web browsers and I must say this blog
loads a lot faster then most. Can you recommend a good internet hosting provider at a
honest price? Thanks a lot, I appreciate it!
loans no credit
where can i buy dapoxetine in canada
I am sure this post has touched all the internet visitors, its really really fastidious post on building
up new website.
It is the best time to make some plans for the future and
it is time to be happy. I’ve read this post and if I could I desire to suggest you some
interesting things or suggestions. Maybe you can write next articles referring to this article.
I want to read even more things about it!
buy tadalafil pills
You could definitely see your enthusiasm within the work you write.
The sector hopes for even more passionate writers such as you who aren’t afraid to
say how they believe. At all times go after your heart.
buy metformin: metformin price – metformin buy online usa
how to buy viagra cheap
I am really impressed with your writing skills and also
with the layout on your blog. Is that this a paid subject matter or did you customize it yourself?
Anyway stay up the excellent high quality writing,
it’s rare to see a great blog like this one today..
you are in reality a good webmaster. The site loading pace is incredible.
It seems that you’re doing any distinctive trick.
Also, The contents are masterwork. you’ve performed a fantastic activity on this topic!
It is the best time to make a few plans for the future and it is time to
be happy. I have learn this publish and if I may I want to counsel you few interesting things or
advice. Maybe you could write next articles regarding this article.
I wish to learn even more things approximately it!
buy sildenafil 20 mg tablets
What’s up, just wanted to mention, I loved this article.
It was funny. Keep on posting!
fast personal loan
average cost of cialis 20mg
generic cialis 5mg cost
I visited multiple web sites but the audio quality
for audio songs existing at this web page is in fact
wonderful.
generic cialis 5mg online
cash loans with no credit
online cash advance
Greetings! Quick question that’s entirely
off topic. Do you know how to make your site mobile friendly?
My web site looks weird when browsing from my iphone4.
I’m trying to find a template or plugin that might be able to correct this issue.
If you have any suggestions, please share. Thanks!
canadian pharmacy world coupon
I see your page needs some fresh articles.
Writing manually is time consuming, but there is solution for this.
Just search for: Masquro’s strategies
south africa cialis
small business loans for women
rx pharmacy viagra
buy real viagra online no prescription
generic viagra online australia
discount pharmacy mexico
online pharmacy pain relief
cash payday loans online
lasix 100 mg: lasix – lasix 100 mg
sildenafil comparison