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.
excellent points altogether, you simply received a new reader.
What could you recommend about your submit that you simply made some days in the past?
Any sure?
Тhanks for finally writing aboսt > Contoh Soal Pemrograman – Pola Segitiga Siku-siku – Umar faisol < Loved it!
My web-site читать
больше информации
Way cool! Some extremely valid points! I appreciate
you penning this write-up and the rest of the site is very good.
You can certainly see your skills within the article you write.
The world hopes for even more passionate writers like you who
are not afraid to mention how they believe. At all times go
after your heart.
I’m extremely impressed with your writing skills and also with the layout on your weblog.
Is this a paid theme or did you modify it yourself?
Either way keep up the nice quality writing, it’s rare to
see a nice blog like this one today.
Ahaa, its good discussion about this post here at this blog, I have read
all that, so at this time me also commenting here.
Hi there to all, how is all, I think every one is getting more from this site,
and your views are good designed for new users.
Wow, this piece of writing is pleasant, my sister is analyzing these things, so I am going to let
know her.
Yes! Finally something about http://qooh.me/nosepoppy64.
I’ve been surfing online greater than 3 hours nowadays, yet I never discovered any interesting
article like yours. It’s beautiful price enough for me.
In my view, if all site owners and bloggers made excellent content as you did, the web will be much more useful than ever before.
I love what you guys tend to be up too. This kind of clever work and coverage!
Keep up the fantastic works guys I’ve incorporated you guys to
blogroll.
Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4
year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her
ear and screamed. There was a hermit crab inside and
it pinched her ear. She never wants to go back! LoL I know this is
completely off topic but I had to tell someone!
This info is worth everyone’s attention. Where
can I find out more?
I used to be able to find good advice from your blog articles.
Hi! Do you know if they make any plugins to protect against hackers?
I’m kinda paranoid about losing everything I’ve worked hard on. Any
recommendations?
I don’t even understand how I ended up here, but I believed this put up was great.
I do not understand who you’re but definitely you’re going to
a famous blogger in the event you aren’t already. Cheers!
Wow that was strange. I just wrote an very long comment
but after I clicked submit my comment didn’t show up. Grrrr…
well I’m not writing all that over again. Anyway, just
wanted to say great blog!
Wow, wonderful weblog structure! How lengthy have you been running a blog for?
you make blogging glance easy. The full look of your site
is great, as neatly as the content material!
Heya i’m for the primary time here. I came across this board and I find It truly useful
& it helped me out much. I am hoping to give one thing again and help others
like you helped me.
all the time i used to read smaller posts that as well clear their motive, and that is
also happening with this piece of writing which I am reading here.
Hi there to all, how is the whole thing, I think every one is getting more from
this web page, and your views are nice for new visitors.
Very great post. I simply stumbled upon your blog and wished to say that I have truly enjoyed browsing your weblog posts.
In any case I will be subscribing to your feed and I am hoping you write again soon!
Hello just wanted to give you a quick heads up and let you know a few of the pictures
aren’t loading properly. I’m not sure why but I
think its a linking issue. I’ve tried it in two different browsers
and both show the same results.
Ꮋello mates, its great paragraph regarding cuⅼtuгeand fully Ԁefined, keep it
uup alⅼ the time.
Alsoo visit my webpage: game slot online
I do not even know how I ended up here, but I thought this
post was good. I don’t know who you are but definitely you are going to a
famous blogger if you aren’t already 😉 Cheers!
all the time i used to read smaller content which also clear their motive, and
that is also happening with this paragraph which I am reading here.
Good day! I could have sworn I’ve been to
this web site before but after browsing through some of the posts I realized
it’s new to me. Nonetheless, I’m definitely pleased I discovered it and I’ll be book-marking it and checking back regularly!
Hello there! I could have sworn I’ve visited this blog before but
after going through many of the posts I realized it’s new to me.
Nonetheless, I’m definitely pleased I found it and I’ll be bookmarking it and checking
back often!
If you want to take much from this post then you have to
apply such techniques to your won weblog.
What’s up, I check your blogs daily. Your writing style is
witty, keep up the good work!
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 are going to a famous blogger if you are
not already 😉 Cheers!
Yes! Finally something about https://notes.io/RrRu.
My partner and I stumbled over here coming from a different page and
thought I might check things out. I like what I see so i am just following you.
Look forward to finding out about your web page for a second time.
I could not refrain from commenting. Very well written!
Hi! Someone in my Myspace group shared this site with us so I came to look it over.
I’m definitely loving the information. I’m bookmarking and will be tweeting
this to my followers! Terrific blog and fantastic style and design.
Right now it seems like WordPress is the best blogging platform out there right now.
(from what I’ve read) Is that what you’re using on your blog?
Hey there just wanted to give you a quick heads up.
The text in your article seem to be running off the screen in Safari.
I’m not sure if this is a format issue or something to do with browser compatibility but
I thought I’d post to let you know. The layout look great though!
Hope you get the issue resolved soon. Kudos
Heya! I’m at work surfing around your blog from my new apple iphone!
Just wanted to say I love reading through your blog and look forward to all your posts!
Carry on the fantastic work!
Hello would you mind letting me know which webhost you’re working
with? I’ve loaded your blog in 3 completely different web browsers and I must say this blog loads a lot quicker then most.
Can you recommend a good web hosting provider at a fair price?
Cheers, I appreciate it!
I have been exploring for a bit for any high-quality
articles or blog posts on this sort of space . Exploring in Yahoo I eventually stumbled upon this site.
Studying this info So i’m satisfied to convey that I have an incredibly just right uncanny feeling I found out exactly what I needed.
I so much no doubt will make certain to don?t overlook this web site and give it
a glance regularly.
Ahaa, its pleasant discussion regarding this post here at this blog, I have read all that, so now
me also commenting here.
Its like you read my mind! You appear to know so much about this, like
you wrote the book in it or something. I think that
you could do with some pics to drive the message home a bit,
but other than that, this is great blog. A great read.
I’ll certainly be back.
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 are going to a famous blogger if you are not already 😉
Cheers!
Hi! I’ve been following your site for a while now and finally got the courage
to go ahead and give you a shout out from Houston Tx!
Just wanted to say keep up the good job!
For most complaints and inquiries, tthe finest spot to start
it going to be the casino operator themselves.
my web blog – 바카라 배팅법
Why people still make use of to read news papers when in this
technological globe the whole thing is accessible on web?
Helpful info. Lucky me I discovered your site accidentally, and I
am shocked why this twist of fate didn’t took place earlier!
I bookmarked it.
Excellent article! We will be linking to this particularly great post on our site.
Keep up the good writing.
Hi there, I enjoy reading all of your article post.
I like to write a little comment to support you.
I am regular visitor, how are you everybody? This article posted
at this web page is truly nice.