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.
stromectol generic name
cheap generic viagra free shipping best otc female viagra
ivermectin 10 mg
cialis no prescription canada
buy cialis online canadian pharmacy
Having read this I believed it was really enlightening.
I appreciate you spending some time and effort to put this
short article together. I once again find myself personally spending a lot of time both reading and posting comments.
But so what, it was still worth it!
Howdy! This post couldn’t be written any better!
Looking through this post reminds me of my previous roommate!
He always kept preaching about this. I will send
this post to him. Pretty sure he will have a good read. Thanks for sharing!
order tadalafil canada
online canadian pharmacies regulated by health canada precision rx pharmacy
I every time spent my half an hour to read this webpage’s content every day along with a mug of coffee.
I’m not sure why but this site is loading
incredibly slow for me. Is anyone else having this problem or is it a problem on my end?
I’ll check back later and see if the problem still exists.
ivermectin covid
cymbalta purchase
atarax anxiety
cialis 5mg nz
sildenafil 5 mg price
generic anafranil cost
At this time I am going away to do my breakfast,
once having my breakfast coming again to read further news.
cymbalta 6 mg
brand name viagra for sale
new ed drugs – order accutane without prescription accutane prices in south africa
budesonide pill cost
buy sildenafil 50mg
Great information. Lucky me I found your site by accident (stumbleupon).
I have saved it for later!
viagra online costs
black cialis mexico cialis generic shopping
Superb blog you have here but I was curious about if you knew of any user discussion forums that
cover the same topics talked about in this article?
I’d really love to be a part of group where I can get responses from other knowledgeable individuals that share the same interest.
If you have any recommendations, please let me know.
Bless you!
order sildenafil 50 mg
Hi there, I found your site by way of Google while searching for a comparable topic, your web site got here up,
it looks great. I’ve bookmarked it in my google bookmarks.
Hi there, simply become aware of your blog via Google, and found that it’s really informative.
I am going to be careful for brussels. I’ll be grateful when you continue
this in future. Numerous people will probably be benefited out of your writing.
Cheers!
viagra generic online usa
Appreciate this post. Will try it out.
I was suggested this web site by my cousin. I am not sure whether this post
is written by him as nobody else know such detailed about my problem.
You’re amazing! Thanks!
otc cialis usa
I always spent my half an hour to read this webpage’s content all
the time along with a cup of coffee.
Hi to every , as I am in fact keen of reading this
webpage’s post to be updated regularly. It includes pleasant material.
Unquestionably imagine that that you said. Your favourite justification appeared to be on the web the simplest
factor to take into accout of. I say to you, I definitely get irked even as folks think about worries that they just don’t know about.
You managed to hit the nail upon the highest
and also outlined out the entire thing with no need side-effects
, other people could take a signal. Will likely be again to get more.
Thanks
Asking questions are really pleasant thing if you are not understanding
something entirely, however this piece of writing provides good
understanding yet.
5mg propecia
You should take part in a contest for one of the most useful
websites on the net. I will highly recommend this website!
I am not certain the place you’re getting your info, but good topic.
I must spend some time learning much more
or figuring out more. Thank you for excellent info I used
to be on the lookout for this info for my mission.
cialis generic cheap
amoxicillin price – online slots for real money online casino gambling
I all the time used to study piece of writing in news
papers but now as I am a user of internet so from now I
am using net for articles or reviews, thanks to web.
You really make it seem so easy together with your presentation however I find this topic to be really something which I feel I might
by no means understand. It kind of feels too complicated and
very broad for me. I am taking a look ahead to your next post, I will try to get the grasp of it!
Hello there, just became aware of your blog through Google, and found that it is truly informative.
I’m going to watch out for brussels. I’ll be grateful if you continue this
in future. A lot of people will be benefited from your
writing. Cheers!
obviously like your web site but you have to test the
spelling on quite a few of your posts. A number of them are rife with spelling problems and I find
it very troublesome to inform the reality nevertheless I will certainly come back again.
Hello, I desire to subscribe for this webpage to get most up-to-date updates, therefore where can i do it please help.
Thanks a lot for sharing this with all of us you really realize what you’re talking approximately!
Bookmarked. Please additionally talk over with my web site
=). We will have a hyperlink trade agreement between us