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.
Hmm is anyone else encountering problems with
the images on this blog loading? I’m trying to determine
if its a problem on my end or if it’s the blog.
Any responses would be greatly appreciated.
Wow, incredible blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your web site is excellent, as well as the content!
I was curious if you ever considered changing the
layout of your blog? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having 1 or 2 pictures.
Maybe you could space it out better?
I like what you guys are up too. This kind of clever work and
exposure! Keep up the very good works guys I’ve added you guys
to my blogroll.
I just like the helpful info you provide in your articles.
I’ll bookmark your blog and check again here regularly.
I’m slightly sure I will learn a lot of new stuff right right
here! Good luck for the next!
It’s a shame you don’t have a donate button! I’d certainly donate to this fantastic blog!
I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account.
I look forward to brand new updates and will talk about this site with my Facebook group.
Chat soon!
This piece of writing will assist the internet viewers for
building up new web site or even a weblog from start to end.
I delight in, lead to I discovered just what I was
taking a look for. You have ended my four day lengthy hunt!
God Bless you man. Have a nice day. Bye
Piece of writing writing is also a excitement, if you be acquainted with afterward you can write or else it is complicated
to write.
Hello! I’ve been reading your web site for a long time now and
finally got the courage to go ahead and give
you a shout out from Houston Texas! Just wanted to tell you keep up the excellent job!
Купить вилочные штабелёры
Обычно цена на погрузчик указана в его карточке в каталоге. Уточнить цену с доставкой к точному сроку можно отправив заявку прямо с сайта – мы действительно быстро отвечаем!
Штабелёры вилочные, ричтраки https://shtabeler.blog/tipy-dvigatelej-shtabelera/
место производства погрузчика;
О том, для чего именно используются вилочные штабелёры и как самостоятельно выбрать качественный и надёжный погрузчик данного вида, будет подробно рассказано далее в статье.
_____________________________________________
ампириретиризм
When some one searches for his required thing, so he/she desires to be available that in detail, so
that thing is maintained over here.
Howdy! I could have sworn I’ve been to this blog before but after
checking through some of the post I realized it’s new to
me. Nonetheless, I’m definitely glad I found it and I’ll be book-marking and checking back frequently!
Hello, just wanted to mention, I liked this blog post.
It was funny. Keep on posting!
Hello, i feel that i noticed you visited my web site so i came to
return the choose?.I am attempting to to find things to enhance my web site!I guess its good enough to make use of some of your ideas!!
Howdy! 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 tips?
I’m not sure why but this weblog is loading incredibly slow
for me. Is anyone else having this problem or is it a problem on my end?
I’ll check back later on and see if the problem still exists.
Truly when someone doesn’t understand then its up to other viewers that
they will assist, so here it takes place.
With havin so much content do you ever run into any problems of
plagorism or copyright infringement? My blog has a lot of exclusive content I’ve either authored myself or outsourced but it appears a lot of it is popping it up all over the internet without my
agreement. Do you know any methods to help prevent content from
being ripped off? I’d certainly appreciate it.
This post is invaluable. Where can I find out more?
Howdy, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments?
If so how do you prevent it, any plugin or anything you can suggest?
I get so much lately it’s driving me mad so any
help is very much appreciated.
hi!,I like your writing very so much! proportion we keep up a correspondence
extra about your post on AOL? I require an expert in this house to resolve my
problem. May be that’s you! Having a look forward to see you.
I’ve read some excellent stuff here. Certainly worth bookmarking for revisiting.
I wonder how so much effort you set to make this kind of excellent informative
web site.
Hello all, here every one is sharing these knowledge, thus it’s pleasant to
read this blog, and I used to go to see this web site all the
time.
Amazing blog! Do you have any tips for aspiring writers?
I’m planning to start my own site soon but I’m a little lost on everything.
Would you recommend starting with a free platform like
Wordpress or go for a paid option? There are so many options out there
that I’m completely overwhelmed .. Any suggestions? Cheers!
It’s very effortless to find out any matter on web as compared to textbooks, as
I found this piece of writing at this web page.
Hi, after reading this remarkable article i am
as well glad to share my familiarity here with friends.
We’re a bunch of volunteers and starting a new scheme in our
community. Your site provided us with valuable info to work on. You have performed a formidable activity and our whole community can be grateful to you.
I’m amazed, I must say. Rarely do I encounter a blog that’s both equally educative
and entertaining, and let me tell you, you have hit
the nail on the head. The problem is something which too few folks are speaking intelligently about.
I am very happy I found this in my search for something relating to this.
Keep on working, great job!
Fastidious answers in return of this query with firm arguments and describing everything on the topic of that.
Nice replies in return of this question with firm arguments and explaining everything regarding that.
What’s up, I want to subscribe for this web site to take latest updates, therefore where
can i do it please help out.
Hmm is anyone else experiencing problems with the images on this blog loading?
I’m trying to determine if its a problem on my end or if
it’s the blog. Any responses would be greatly appreciated.
I couldn’t refrain from commenting. Exceptionally well written!
Great post.
Excellent post. I will be facing some of these issues as well..
Wow that was unusual. I just wrote an extremely 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 wonderful blog!
Heya i’m for the first time here. I came across this board and I to find It truly useful & it helped me out much.
I am hoping to provide something back and aid others like you aided me.
What’s Happening i am new to this, I stumbled upon this I have found It absolutely useful and it has
aided me out loads. I am hoping to contribute & help other customers like its helped me.
Great job.
I constantly emailed this web site post page to all my associates, for the
reason that if like to read it afterward my contacts will too.
Hello! This is my first visit to your blog! We are a team of volunteers and starting a new project in a community in the same niche.
Your blog provided us beneficial information to work on. You
have done a wonderful job!
Great article. I will be dealing with some of these issues as well..
each time i used to read smaller articles which also clear their motive, and that is also happening with this piece of
writing which I am reading at this place.
What’s Going down i’m new to this, I stumbled upon this I have found It positively useful and it has aided me out loads.
I am hoping to contribute & help other users like its helped me.
Good job.
I could not resist commenting. Perfectly written!
Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I
acquire in fact enjoyed account your blog posts. Any way I will
be subscribing to your augment and even I achievement you access consistently fast.
Hello! This is kind of off topic but I need some guidance from an established blog.
Is it difficult to set up your own blog? I’m not very techincal but I can figure things out pretty fast.
I’m thinking about making my own but I’m not sure where to start.
Do you have any ideas or suggestions? Cheers
I constantly spent my half an hour to read this
blog’s articles or reviews everyday along with a mug of coffee.
When some one searches for his essential thing, so he/she
wishes to be available that in detail, therefore that thing
is maintained over here.