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.
We are a bunch of volunteers and starting a new scheme in our community.
Your site provided us with useful information to work on. You’ve done an impressive
process and our entire community will likely be grateful to
you.
Hi, i feel that i noticed you visited my web site thus i came to go back the desire?.I am attempting to find issues to improve my web site!I assume its
adequate to use a few of your ideas!!
I got this web site from my buddy who told me concerning
this web site and now this time I am browsing this web page and
reading very informative posts here.
It’s very trouble-free to find out any matter on net as compared
to books, as I found this piece of writing at this web page.
Excellent article. I absolutely love this site.
Continue the good work!
It’s very trouble-free to find out any topic on web as compared to textbooks,
as I found this paragraph at this site.
Nice blog here! Also your web site loads up very fast!
What host are you using? Can I get your affiliate link to your host?
I wish my web site loaded up as quickly as yours lol
Hi there, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam feedback?
If so how do you reduce it, any plugin or anything you can recommend?
I get so much lately it’s driving me crazy so any help is very much appreciated.
Appreciate this post. Will try it out.
Everything posted made a ton of sense. But, what about this?
suppose you added a little information? I am not suggesting your content isn’t solid., but suppose you
added a headline that grabbed people’s attention? I mean Contoh Soal
Pemrograman – Pola Segitiga Siku-siku – Umar faisol is kinda
boring. You could look at Yahoo’s home page and watch how they create post titles to grab viewers to click.
You might add a video or a picture or two to get readers interested about everything’ve written. In my
opinion, it would bring your posts a little bit more interesting.
Having read this I believed it was extremely informative.
I appreciate you finding the time and energy to put this content together.
I once again find myself personally spending a significant amount of time both reading and posting comments.
But so what, it was still worth it!
It’s the best time to make some plans for the long run and it is time to be happy.
I have read this publish and if I may I wish to suggest you few fascinating things
or tips. Perhaps you can write subsequent articles referring to this article.
I wish to read even more issues approximately it!
Wow that was strange. I just wrote an incredibly long
comment but after I clicked submit my comment didn’t appear.
Grrrr… well I’m not writing all that over again. Regardless, just wanted to say fantastic blog!
Hmm is anyone else experiencing problems
with the images on this blog loading? I’m trying to figure out if its a problem on my end
or if it’s the blog. Any responses would be greatly appreciated.
Wow, this article is pleasant, my sister is analyzing such things, thus I
am going to tell her.
Hello, i believe that i noticed you visited my site thus i got here to go back the want?.I am trying to find issues to
improve my web site!I assume its ok to use some of your
concepts!!
These are actually great ideas in about blogging.
You have touched some nice factors here. Any way keep up wrinting.
Hi there, just wanted to say, I loved this post. It was funny.
Keep on posting!
Hi, its good post about media print, we all know
media is a great source of data.
I love it when individuals get together and share thoughts.
Great site, keep it up!
Does your blog have a contact page? I’m having problems locating it but, I’d
like to send you an e-mail. I’ve got some creative ideas for
your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it improve
over time.
I used to be able to find good advice from your articles.
Hello, after reading this amazing piece of writing i am
as well happy to share my know-how here with colleagues.
When I originally commented I seem to have clicked on the -Notify
me when new comments are added- checkbox and from now on whenever
a comment is added I get four emails with the exact same comment.
Perhaps there is an easy method you are able to remove
me from that service? Appreciate it!
Hmm is anyone else having problems with the images on this blog loading?
I’m trying to figure out if its a problem on my end or if it’s the blog.
Any feed-back would be greatly appreciated.
I like the valuable information you provide for your articles.
I will bookmark your weblog and test once more right here frequently.
I am moderately sure I will be told a lot of new stuff proper here!
Best of luck for the next!
We are a bunch of volunteers and starting a new scheme in our community.
Your web site offered us with valuable information to work on. You have done a formidable process and our
whole community shall be grateful to you.
Hello there! I just would like to give you a big thumbs up for your excellent information you have
right here on this post. I will be returning to your web site for more
soon.
fascinating review. At the same time visit the site to find out agen slot pulsa.
That site has received popularity right from agen slot deposit pulsa wagering
individuals in Dalam negri. Truth be told there are generally lots of gorgeous promos in the event you join at
present.
Saved as a favorite, I like your blog!
Very great post. I simply stumbled upon your blog and wished to mention that I have truly enjoyed surfing around your blog posts.
In any case I will be subscribing for your rss feed and I
am hoping you write again soon!
Hello, this weekend is fastidious for me, as this time i
am reading this great informative piece of writing here at my house.
Yes! Finally someone writes about situs judi slot online.
Hi there to all, it’s actually a nice for me to pay a quick visit this web site, it consists of precious Information.
Someone essentially assist to make severely articles I might state.
That is the first time I frequented your web page and
thus far? I surprised with the research you made to make this
actual publish amazing. Wonderful process!
Wow! After all I got a webpage from where I can in fact take helpful facts regarding my study and knowledge.
You have made some good points there. I checked on the
net for more information about the issue and found most individuals will
go along with your views on this web site.
I’d like to find out more? I’d like to find out some additional information.
Very good info. Lucky me I came across your site by accident (stumbleupon).
I’ve saved it for later!
It’s in fact very complicated in this full of activity life to listen news on TV, therefore I only use internet for that reason, and
get the latest information.
I am regular visitor, how are you everybody? This piece of writing
posted at this web page is truly nice.
You need to take part in a contest for one of the best sites on the
web. I’m going to highly recommend this blog!
Nice blog here! Also your site so much up fast!
What host are you using? Can I get your associate hyperlink to your
host? I desire my web site loaded up as
quickly as yours lol
Inspiring story there. What occurred after? Good luck!
Yes! Finally someone writes about https://trade-britanica.trade/wiki/The_ultimate_Deal_On_Minecraft_Server.
Everyone loves what you guys are up too. This sort of clever work
and exposure! Keep up the good works guys I’ve included you
guys to blogroll.
What’s up, its pleasant post about media print, we all
be aware of media is a enormous source of data.
Hmm is anyone else encountering problems with the images on this blog loading?
I’m trying to figure out if its a problem on my end or if it’s the blog.
Any suggestions would be greatly appreciated.
Inspiring quest there. What happened after? Take care!
Article writing is also a fun, if you be familiar with after that
you can write otherwise it is complicated to write.