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.
It’s perfect time to make a few plans for the long run and it’s time to be happy.
I’ve learn this publish and if I may just I wish to recommend you few
attention-grabbing issues or advice. Maybe you can write subsequent articles relating to this article.
I want to learn even more issues about it!
This design is steller! You obviously know how to keep a reader amused.
Between your wit and your videos, I was almost moved
to start my own blog (well, almost…HaHa!) Wonderful job. I really loved what you had to say,
and more than that, how you presented it. Too cool!
Great post. I used to be checking continuously this blog and I’m impressed!
Extremely useful info particularly the last section 🙂 I take care of such information much.
I was seeking this certain info for a very lengthy time.
Thanks and best of luck.
I could not resist commenting. Exceptionally well written!
Hello there, You’ve done a great job. I will certainly digg
it and personally suggest to my friends. I am confident
they’ll be benefited from this website.
If you would like to take much from this paragraph then you have to apply such techniques to your won blog.
This info is invaluable. When can I find out more?
Greetings from Idaho! I’m bored to tears at work so I decided
to browse your website on my iphone during lunch break. I really like the info you present here and can’t wait to take a look when I get home.
I’m shocked at how quick your blog loaded on my mobile ..
I’m not even using WIFI, just 3G .. Anyhow, amazing site!
Very good information. Lucky me I found your website by accident (stumbleupon).
I’ve book marked it for later!
prednisolon side effects of prednisone
This site really has all of the information and facts I needed about this subject and didn’t know who to ask.
I’m not sure why but this blog is loading very slow for
me. Is anyone else having this issue or is it a issue on my end?
I’ll check back later and see if the problem still exists.
Hello! Do you know if they make any plugins
to safeguard against hackers? I’m kinda paranoid
about losing everything I’ve worked hard on. Any tips?
Hello, i feel that i noticed you visited my web site thus i got here to return the prefer?.I’m
trying to in finding issues to enhance my site!I suppose its good enough to use a
few of your ideas!!
I absolutely love your blog and find most of your post’s to be just what I’m looking for.
Do you offer guest writers to write content available for you?
I wouldn’t mind publishing a post or elaborating on a few of
the subjects you write concerning here. Again, awesome web log!
Very good blog! Do you have any hints for aspiring writers?
I’m planning to start my own site soon but I’m a little lost on everything.
Would you suggest starting with a free platform like WordPress or go
for a paid option? There are so many choices out there that
I’m completely overwhelmed .. Any suggestions? Thanks!
Its such as you learn my mind! You appear to grasp so much about this, such
as you wrote the guide in it or something. I feel that you simply can do
with a few percent to drive the message home a little bit, however other than that, that is excellent
blog. A fantastic read. I’ll certainly be back.
Great information. Lucky me I found your site by accident (stumbleupon).
I’ve book marked it for later!
Wow, amazing weblog format! How long have you ever been running a blog for?
you make blogging glance easy. The overall glance of your web
site is magnificent, as well as the content!
This is a great tip especially to those fresh to the blogosphere.
Simple but very precise information… Thank you for sharing this one.
A must read post!
I love looking through an article that will make men and women think.
Also, thanks for allowing for me to comment!
I am regular visitor, how are you everybody? This paragraph
posted at this website is genuinely nice.
Hi Dear, are you truly visiting this site on a regular
basis, if so afterward you will definitely get nice know-how.
Ahaa, its pleasant conversation regarding this post here at this webpage,
I have read all that, so at this time me also commenting at this place.
Your way of describing the whole thing in this paragraph is really good,
every one be capable of without difficulty be aware of it,
Thanks a lot.
Just want to say your article is as surprising.
The clarity in your post is simply cool and i could assume
you’re an expert on this subject. Well with
your permission let me to grab your feed to
keep up to date with forthcoming post. Thanks a million and please continue the rewarding work.
This text is worth everyone’s attention. Where can I find out more?
You could definitely see your expertise in the work you write.
The sector hopes for more passionate writers such as you who are not afraid to
mention how they believe. All the time follow your heart.
I’ve been browsing online more than 3 hours today, yet I never found any interesting
article like yours. It’s pretty worth enough for me.
Personally, if all webmasters and bloggers made good content
as you did, the internet will be a lot more useful than ever before.
Incredible! This blog looks exactly like my old one! It’s on a entirely different subject but
it has pretty much the same layout and design. Wonderful choice of colors!
Thanks , I have recently been looking for information about this subject for ages and yours is the
greatest I have found out till now. But, what in regards
to the conclusion? Are you certain concerning the source?
Hello there! This is my first comment here so I just
wanted to give a quick shout out and say I really enjoy reading through your blog posts.
Can you suggest any other blogs/websites/forums that deal
with the same subjects? Thank you so much!
Good answers in return of this difficulty with real arguments
and describing everything about that.
prednisolone tablets prednison
Hmm is anyone else having problems with the images on this blog
loading? I’m trying to determine if its a problem on my end or if it’s the blog.
Any suggestions would be greatly appreciated.
Howdy! I could have sworn I’ve been to this website before but
after going through a few of the articles I realized it’s
new to me. Anyhow, I’m certainly happy I stumbled upon it and I’ll be
book-marking it and checking back frequently!
Remarkable things here. I’m very happy to see your post.
Thanks a lot and I’m taking a look ahead to touch you.
Will you please drop me a e-mail?
Asking questions are genuinely nice thing if you are not understanding anything totally,
however this paragraph presents nice understanding yet.
Very nice post. I just stumbled upon your blog and wanted to say that I
have truly enjoyed browsing your blog posts. After all I’ll be subscribing
to your rss feed and I hope you write again very soon!
I was recommended this website by my cousin. I’m not sure whether this post is written by him as
nobody else know such detailed about my problem. You’re amazing!
Thanks!
For the reason that the admin of this site is working, no uncertainty very shortly it will be
well-known, due to its quality contents.
sulfamethoxazole uses trimethoprim ss
Thanks for every other magnificent article.
The place else may just anyone get that kind of information in such a perfect approach of writing?
I’ve a presentation subsequent week, and I’m at the look for such info.
cialis generic otc
Simply want to say your article is as astonishing. The clarity to your submit is just nice and that i could think you are a professional
in this subject. Well together with your permission allow
me to take hold of your RSS feed to keep up to date with
approaching post. Thank you a million and please carry on the gratifying work.
Simply wish to say your article is as surprising. The
clearness in your post is just cool and i can assume you’re an expert on this subject.
Fine with your permission let me to grab your feed to keep updated
with forthcoming post. Thanks a million and please keep up the rewarding work.
I am regular visitor, how are you everybody? This post posted at this
site is actually good.
you are truly a good webmaster. The website loading speed is incredible.
It seems that you are doing any unique trick. Furthermore, The contents are masterpiece.
you have done a magnificent job in this matter!
It is really a great and useful piece of information. I’m glad that
you simply shared this helpful information with us.
Please stay us up to date like this. Thank you
for sharing.
Wow, amazing blog layout! How lengthy have
you ever been blogging for? you make blogging look
easy. The entire look of your site is wonderful,
as smartly as the content material! http://herreramedical.org/sildenafil