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.
What a material of un-ambiguity and preserveness of precious knowledge about
unpredicted emotions.
I have read so many articles or reviews on the topic of the
blogger lovers except this article is actually a pleasant
paragraph, keep it up.
Nice weblog here! Also your site rather a lot up fast!
What host are you the use of? Can I am getting your associate hyperlink on your host?
I want my site loaded up as quickly as yours lol
I don’t even know how I ended up here, but I thought this post was great.
I don’t know who you are but certainly you’re going to a famous blogger if you aren’t already 😉 Cheers!
Yes! Finally someone writes about https://picbootloader.com/forum/member.php?action=profile&uid=440065.
For latest information you have to pay a visit web and on the web I found this web
site as a finest site for latest updates.
I don’t even know how I ended up here, but I thought this post was good.
I do not know who you are but definitely you’re going to a
famous blogger if you aren’t already 😉 Cheers!
If some one desires expert view regarding blogging and site-building afterward i advise him/her to visit this web site, Keep up
the nice work.
Have you ever thought about including a little
bit more than just your articles? I mean, what you say is fundamental and everything.
However think of if you added some great pictures or videos to
give your posts more, “pop”! Your content is excellent but with images
and video clips, this site could definitely be one of the most beneficial in its niche.
Good blog!
Everyone loves what you guys are usually up too. Such clever work and coverage!
Keep up the excellent works guys I’ve added you guys to
my blogroll.
Hi, I do think this is a great site. I stumbledupon it 😉 I’m going to return yet again since i have book marked
it. Money and freedom is the greatest way to change, may you
be rich and continue to guide other people.
Its such as you read my thoughts! You appear to grasp so much
about this, like you wrote the e-book in it or something.
I feel that you just can do with some % to
pressure the message home a little bit, however instead of
that, this is great blog. A fantastic read.
I’ll definitely be back.
I am curious to find out what blog platform you
happen to be working with? I’m experiencing some small security issues with my latest site and
I would like to find something more safe. Do you have any suggestions?
Hi, I log on to your blogs daily. Your humoristic style is witty, keep it
up!
We stumbled over here different web address and thought
I might as well check things out. I like what I see so i am just following you.
Look forward to exploring your web page yet again.
It is not my first time to pay a visit this web site,
i am visiting this web site dailly and obtain fastidious information from here everyday.
Hey there, You have done a fantastic job. I’ll definitely
digg it and personally suggest to my friends.
I am confident they’ll be benefited from this site.
Great information. Lucky me I discovered your blog
by chance (stumbleupon). I have saved as a favorite for
later!
I’d like to find out more? I’d care to find out some additional
information.
constantly i used to read smaller articles or reviews which as well clear their motive,
and that is also happening with this piece of writing which I am reading
at this time.
We stumbled over here by a different web address and thought I may as well check things out.
I like what I see so i am just following you.
Look forward to finding out about your web page repeatedly.
This is a topic that’s close to my heart… Take care!
Where are your contact details though?
Hi, this weekend is pleasant designed for me, for the reason that this
occasion i am reading this enormous informative post here at my residence.
I couldn’t refrain from commenting. Exceptionally well written!
I feel this is one of the such a lot vital
information for me. And i’m happy studying your article. However should statement
on few general issues, The web site style is perfect, the articles
is in point of fact excellent : D. Just right process, cheers
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 responses would be greatly appreciated.
A person essentially help to make seriously articles I might
state. That is the very first time I frequented your web page and
to this point? I surprised with the analysis you made to make this actual publish incredible.
Wonderful process!
You’ve made some good points there. I checked on the net
for additional information about the issue and
found most people will go along with your views on this
web site.
very interesting review. Furthermore visit my very
own, personal site to have agen slot deposit pulsa. Wonderful web site has received
acceptance from slot pulsa online gambling establishment men and women in Negara
sendiri. Certainly, there will be plenty of sophisticated promos if however you join now.
What’s up, this weekend is good designed for me, because this occasion i am reading this fantastic educational piece of writing here at my residence.
Great weblog right here! Additionally your site rather a lot up
very fast! What host are you the usage of? Can I
am getting your affiliate link to your host? I wish my site loaded up as fast as yours lol
Why visitors still make use of to read news papers when in this technological world all is existing on net?
Excellent post! We will be linking to this great content on our site.
Keep up the great writing.
You can certainly see your skills within the work you write.
The world hopes for more passionate writers like you who
are not afraid to say how they believe. At all times follow
your heart.
No matter if some one searches for his required thing, so he/she wishes to be available that in detail, thus that thing is maintained over here.
It’s an remarkable post in favor of all the web people; they will
obtain benefit from it I am sure.
Right away I am ready to do my breakfast,
once having my breakfast coming again to read other news.
Excellent blog here! Also your web site loads
up fast! What web host are you using? Can I get your affiliate link to your host?
I wish my site loaded up as quickly as yours lol
Wow that was odd. 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. Anyhow, just wanted to say excellent blog!
Today, while I was at work, my cousin stole my apple ipad and tested to see if it
can survive a forty foot drop, just so she can be a youtube
sensation. My iPad is now destroyed and she has 83 views.
I know this is entirely off topic but I had to share it with someone!
Hello! I could have sworn I’ve been to your blog
before but after going through a few of the articles I realized it’s
new to me. Anyhow, I’m definitely pleased I came across it and I’ll
be book-marking it and checking back often!
Now I am ready to do my breakfast, later than having my breakfast coming yet again to read additional news.
Hey there, You have done an excellent job. I will certainly digg it and personally
suggest to my friends. I am confident they’ll be benefited from
this site.
An intriguing discussion is definitely worth comment.
I think that you need to publish more about this topic,
it may not be a taboo matter but usually folks don’t talk about these issues.
To the next! Cheers!!
Pretty component of content. I simply stumbled upon your site and in accession capital
to say that I acquire in fact enjoyed account your blog
posts. Anyway I’ll be subscribing to your augment or even I success you access constantly quickly.
Informative article, just what I wanted to
find.
Fine way of telling, and nice article to get data regarding my presentation topic, which i am going to deliver in school.
I have been surfing online more than three hours today, yet I never found
any interesting article like yours. It’s pretty worth
enough for me. Personally, if all web owners and bloggers made good content as you did, the
web will be much more useful than ever before.
I have been browsing on-line more than three hours today, yet I never
found any fascinating article like yours. It’s pretty price sufficient for me.
In my opinion, if all web owners and bloggers made just right content as you
probably did, the web will be a lot more helpful than ever before.
Hello, I enjoy reading through your article.
I like to write a little comment to support you.