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.
Very rapidly this web site will be famous among all blogging and site-building viewers,
due to it’s nice articles
I’ve been browsing online more than 2 hours today, yet I never found any interesting article like yours.
It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as
you did, the web will be much more useful than ever before.
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment.
Is there any way you can remove me from that service?
Bless you!
I am regular visitor, how are you everybody? This article posted at
this site is actually fastidious.
This info is worth everyone’s attention. When can I find out more?
WOW just what I was searching for. Came here by searching for daftar situs judi slot online terpercaya
I have been surfing on-line more than three hours these days, yet I by no means
found any interesting article like yours.
It is lovely price enough for me. In my opinion, if all site owners and bloggers made just right content material as you probably did, the internet shall be a lot more useful than ever before.
Good way of describing, and nice article to
take information about my presentation focus, which
i am going to deliver in university.
Everything posted was actually very reasonable. However,
what about this? suppose you added a little information? I ain’t saying your content isn’t good,
but suppose you added a title that makes people want more?
I mean Contoh Soal Pemrograman – Pola Segitiga Siku-siku – Umar faisol is a little plain. You might glance at
Yahoo’s front page and see how they write post headlines to get
viewers to click. You might add a related
video or a related pic or two to get people excited about everything’ve written. Just my opinion, it would bring
your blog a little livelier.
My partner and I stumbled over here different
web page and thought I should check things out.
I like what I see so i am just following you. Look forward to checking
out your web page repeatedly.
For newest news you have to pay a quick visit world wide web and on internet I found this site
as a best web page for hottest updates.
What’s Taking place i am new to this, I stumbled upon this I’ve
found It absolutely helpful and it has helped me out loads.
I’m hoping to contribute & assist other customers like its helped me.
Good job.
Hello, just wanted to mention, I loved this post.
It was funny. Keep on posting!
Does your site have a contact page? I’m having problems locating it but, I’d like to send you an email.
I’ve got some recommendations for your blog you might be interested in hearing.
Either way, great blog and I look forward to seeing it expand over time.
This is a topic that’s near to my heart… Cheers!
Where are your contact details though?
Why people still use to read news papers when in this technological
world all is available on web?
Hmm is anyone else experiencing problems with the pictures
on this blog loading? I’m trying to find out if its a
problem on my end or if it’s the blog. Any feed-back would be greatly
appreciated.
For the reason that the admin of this web site is working, no question very soon it will be famous, due to its quality contents.
Preetty section of ϲontent. I juѕt stumbled upon your web site ɑnd in accession capital t᧐ assert tһat I get aϲtually enjoyed account
ʏour blog posts. Anny ѡay I’ll be subscribing to
your augment aand even I achievement уߋu access consistently fast.
Feel free to surf to mmy web page: 読み続けてください
Keep on writing, great job!
It’s actually very difficult in this active life to listen news on TV,
thus I simply use internet for that reason, and take the latest news.
Article writing is also a fun, if you be acquainted with then you can write if not it is complex to write.
Article writing is also a excitement, if you know after that you can write
if not it is complex to write.
Currently it appears like WordPress is the best blogging platform out there
right now. (from what I’ve read) Is that what you are using
on your blog?
This site truly has all the info I wanted concerning this subject and didn’t know who
to ask.
This site was… how do you say it? Relevant!!
Finally I have found something which helped me. Cheers!
This is a topic that is close to my heart… Best wishes!
Exactly where are your contact details though?
My relatives every time say that I am wasting my time here at net,
however I know I am getting know-how all the time by reading such fastidious articles or reviews.
Appreciate this post. Will try it out.
You should take part in a contest for one of the greatest blogs on the
net. I will highly recommend this site!
Hey there! I’m at work surfing around your blog from my new iphone!
Just wanted to say I love reading through your blog and look forward to all your posts!
Keep up the fantastic work!
Admiring the persistence you put into your blog and
in depth information you present. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed information. Wonderful read!
I’ve bookmarked your site and I’m including your RSS feeds to
my Google account.
I’m curious to find out what blog system you happen to be using?
I’m having some small security issues with my latest
blog and I’d like to find something more secure.
Do you have any recommendations?
These are in fact fantastic ideas in on the topic of blogging.
You have touched some good things here. Any way keep up
wrinting.
Aw, this was an extremely good post. Spending some time and actual effort to generate a good article… but what can I say… I hesitate a lot and never manage to get anything done.
Link exchange is nothing else except it is just placing the other person’s webpage
link on your page at suitable place and other person will also do similar in favor of you.
I do not even understand how I stopped up right here, but
I believed this put up was good. I do not realize who you’re
however certainly you are going to a famous blogger
if you aren’t already. Cheers!
After exploring a few of the blog articles on your web page, I honestly
like your way of blogging. I added it to my bookmark
webpage list and will be checking back soon. Please check out my web
site too and tell me how you feel.
Wow, fantastic weblog structure! How lengthy have you ever been running a blog for?
you make blogging look easy. The entire glance of your web site
is magnificent, let alone the content!
Hello mates, fastidious piece of writing and pleasant urging
commented here, I am actually enjoying by these.
Very nice post. I just stumbled upon your weblog and wanted to mention that I’ve truly loved browsing your blog posts.
After all I’ll be subscribing for your rss feed and I’m hoping you write once more very soon!
Hey! I could have sworn I’ve been to this blog before but after reading through some of the post I realized it’s new to me.
Anyways, I’m definitely glad I found it and I’ll be
bookmarking and checking back often!
I like what you guys are usually up too.
This type of clever work and exposure! Keep up the superb works guys I’ve added you
guys to our blogroll.
It’s fantastic that you are getting thoughts from this paragraph as well as from our argument made
at this place.
Hi there to all, the contents existing at this web page are truly amazing for people knowledge, well,
keep up the nice work fellows.
What’s up, I want to subscribe for this blog
to take most up-to-date updates, thus where can i do
it please help out.
Appreciate this post. Will try it out.
my web page – bandar slot online
In fact when someone doesn’t understand afterward its up
to other people that they will assist, so here it takes place.
If some one desires to be updated with newest technologies
therefore he must be pay a visit this site and be up to date daily.
Hello Dear, are you truly visiting this web site daily, if so then you will absolutely obtain nice know-how.