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.
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You clearly know what youre talking about, why waste your intelligence on just posting videos to your
site when you could be giving us something informative to read?
Great article.
Excellent post. I’m facing many of these issues as well..
I constantly emailed this webpage post page to all
my associates, because if like to read it after
that my friends will too.
You need to take part in a contest for one of the most useful blogs on the web.
I will highly recommend this blog!
Great info. Lucky me I ran across your site by accident (stumbleupon).
I’ve book marked it for later!
Its such as you read my mind! You seem to grasp so much approximately this, such as you wrote the ebook in it
or something. I believe that you just could do with some % to drive the message
home a little bit, however instead of that, this is excellent blog.
An excellent read. I will definitely be back.
If you want to get a good deal from this post then you have to apply these techniques to your won blog.
Ꮃonderful beɑt ! I wish tto apρrentice while you amend your ѕite, howw could i ssubscribe foг a blog site?
The accοunt aided me a acceptaЬle deal. I had been tiny bіt
acquainted off this your broadcast offered
brigһt clear idea
My page slot online terbesar dan terpercaya
(https://wiki-square.win)
WOW just what I was searching for. Came here by searching for https://clinfowiki.win/wiki/Post:Have_You_Heard_Best_Mods_For_Minecraft_Is_Your_Best_Bet_To_Grow
Hi there it’s me, I am also visiting this web page regularly, this
site is truly nice and the viewers are actually sharing good thoughts.
Excellent blog post. I definitely love this site.
Keep it up!
Howdy would you mind letting me know which webhost you’re working with?
I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot
quicker then most. Can you suggest a good internet hosting provider at
a reasonable price? Cheers, I appreciate it!
Have you ever considered about adding a little bit
more than just your articles? I mean, what you say is valuable and all.
But think about if you added some great
photos or video clips to give your posts more, “pop”!
Your content is excellent but with images
and clips, this site could undeniably be one of the best
in its field. Superb blog!
If some one wishes to be updated with most up-to-date technologies afterward he must be pay a
visit this site and be up to date everyday.
Have you ever considered about adding a little bit more than just your
articles? I mean, what you say is important and everything.
Nevertheless imagine if you added some great graphics or videos to give your posts more, “pop”!
Your content is excellent but with images and videos, this blog could undeniably be
one of the most beneficial in its niche. Amazing blog!
Hey there! I’m at work browsing 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 great work!
Hi, i read your blog occasionally and i own a similar one
and i was just wondering if you get a lot of spam remarks?
If so how do you stop it, any plugin or anything you can suggest?
I get so much lately it’s driving me mad so any assistance
is very much appreciated.
I every time spent my half an hour to read this web site’s articles all the time along with a cup of coffee.
Hi there friends, its wonderful post regarding tutoringand entirely explained, keep it up all the
time.
I am actually grateful to the owner of this site who has shared this great article at at this time.
Appreciate the recommendation. Will try it out.
This is the perfect webpage for anybody who hopes to understand this topic.
You realize a whole lot its almost tough to argue with you (not
that I personally would want to…HaHa). You certainly put a new spin on a subject that has been discussed for ages.
Excellent stuff, just excellent!
Truly no matter if someone doesn’t understand then its up to other users that they will help, so here it happens.
Hmm is anyone else experiencing problems with the pictures on this blog loading?
I’m trying to determine if its a problem on my end or if it’s the blog.
Any feedback would be greatly appreciated.
excellent submit, very informative. I wonder why the other experts of
this sector don’t notice this. You must proceed your writing.
I am sure, you have a great readers’ base already!
Howdy! 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 recommendations?
I’ve been surfing on-line greater than 3 hours these days, yet I never
found any fascinating article like yours. It’s lovely value sufficient for me.
In my view, if all web owners and bloggers made
excellent content material as you did, the internet will probably be much more useful
than ever before.
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’m hoping to present something again and aid others like you helped me.
Aw, this was an incredibly nice post. Finding the time
and actual effort to generate a great article… but what can I say… I procrastinate
a lot and never seem to get anything done.
Pretty nice post. I just stumbled upon your weblog and wanted to
say that I’ve truly enjoyed surfing around
your blog posts. In any case I’ll be subscribing to
your rss feed and I hope you write again soon!
I’m gone to say to my little brother, that he should also visit this webpage on regular basis to take updated from latest news update.
Hi there! 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 suggestions?
Hey! Do you use Twitter? I’d like to follow you if that
would be ok. I’m absolutely enjoying your blog and look forward to new posts.
Wow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn’t appear.
Grrrr… well I’m not writing all that over again. Anyway, just wanted to say fantastic blog!
What’s up mates, pleasant article and fastidious urging commented here, I am in fact
enjoying by these.
It is appropriate time to make some plans for the longer term and it is time
to be happy. I have learn this put up and if I could I
desire to counsel you few fascinating things or advice.
Perhaps you could write subsequent articles referring to this
article. I want to learn more issues about it!
This is my first time visit at here and i am
in fact happy to read all at one place.
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You obviously know what youre talking about, why throw away your intelligence on just posting videos to
your weblog when you could be giving us something enlightening to
read?
The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a 25 foot drop,
just so she can be a youtube sensation. My apple ipad is now destroyed and she
has 83 views. I know this is totally off topic but I had to share it with
someone!
I’d like to find out more? I’d want to find out some additional information.
Stunning quest there. What happened after? Good luck!
What a material of un-ambiguity and preserveness of valuable knowledge on the topic of unpredicted
emotions.
I’m imprеssed, I must ѕay. Rarely do I come ahross a bloց that’s equaⅼly educative and entertaining,
and let me tell you, ʏou’ve һit tһе nail on thе head.
The problеm iѕ an issue that too few folks ɑre speaking intelligently
about. I am very һappy that I stumbled acrfoss tһis
during my seaгch for somethіng reցardikng this.
My web Ƅⅼog slot terbesar
Great article, exactly what I wanted to find.
It’s perfect time to make some plans for the long
run and it’s time to be happy. I’ve learn this submit and if I may just I want to counsel
you few attention-grabbing things or suggestions.
Maybe you could write subsequent articles referring to this article.
I want to read even more issues approximately it!
I am curious to find out what blog system you are using?
I’m experiencing some minor security issues with my latest
site and I would like to find something more safe. Do you have any suggestions?
Yes! Finally someone writes about https://crockor.uk/user/profile/640926.
Hello friends, its fantastic post regarding educationand fully defined, keep it up all the time.
Hi there, i read your blog occasionally and i own a similar one and i was just wondering
if you get a lot of spam responses? If so how do you
reduce it, any plugin or anything you can suggest?
I get so much lately it’s driving me insane so any help is very much
appreciated.