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.
ivermectin for sale
This post is truly a fastidious one it helps new internet viewers, who are wishing for blogging.
I don’t know whether it’s just me or if everybody else encountering problems with your site.
It seems like some of the text in your content are running off the screen. Can someone else please provide feedback and let me know if this is happening
to them as well? This may be a problem with my web browser because I’ve had this happen previously.
Many thanks
I don’t know whether it’s just me or if perhaps everybody else
encountering issues with your website. It seems like some of the written text in your posts are running off the screen. Can someone else please provide
feedback and let me know if this is happening to them too?
This might be a issue with my web browser because I’ve had this happen before.
Kudos
This web site definitely has all the info I wanted concerning this subject and didn’t know who to ask.
You really make it seem so easy with your presentation but I find
this matter to be actually something that I think I would never understand.
It seems too complex and extremely broad for me.
I’m looking forward for your next post, I will try to get
the hang of it!
Everything is very open with a clear description of the challenges.
It was truly informative. Your site is extremely helpful.
Many thanks for sharing!
ivermectin 3
These are genuinely enormous ideas in regarding blogging.
You have touched some nice points here. Any way
keep up wrinting.
stromectol canada
Hi would you mind sharing which blog platform you’re working
with? I’m looking to start my own blog soon but I’m having
a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design and style seems different then most blogs and I’m looking for something completely unique.
P.S Sorry for being off-topic but I had to ask!
I do not even understand how I finished up right here, but I assumed this post was great.
I don’t understand who you are however certainly you’re going to a famous blogger for those who
aren’t already. Cheers!
ivermectin pills
Hello, i believe that i saw you visited my blog thus i came to return the favor?.I am attempting
to in finding things to improve my site!I suppose its adequate to make use of some of
your ideas!!
each time i used to read smaller content that as well clear their motive, and that is also
happening with this article which I am reading here.
ivermectin 3mg dose
Very nice article, just what I wanted to find.
Can I simply say what a relief to uncover someone that actually knows what they are
discussing on the internet. You actually understand how to
bring an issue to light and make it important. A lot
more people should read this and understand this side of your story.
I can’t believe you aren’t more popular since you surely possess
the gift.
Hello very cool site!! Man .. Excellent .. Superb ..
I will bookmark your blog and take the feeds additionally?
I’m satisfied to find so many useful info right here in the
post, we’d like develop extra strategies on this regard, thanks for sharing.
. . . . .
Peculiar article, exactly what I needed.
medication furosemide 20 mg – furosemide discount lasix online canada
ivermectin humans
Hi there are using WordPress for your blog
platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you require any html coding expertise to make your own blog?
Any help would be really appreciated!
Hello just wanted to give you a quick heads up and let you know a few of the pictures aren’t
loading correctly. 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 outcome.
Hey! Would you mind if I share your blog with my twitter group?
There’s a lot of folks that I think would really appreciate
your content. Please let me know. Cheers
I love reading through a post that will make men and women think.
Also, thank you for allowing me to comment!
Hello, for all time i used to check blog posts here early in the morning, as i
love to find out more and more.
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!
ivermectin 1 cream 45gm
If you are going for best contents like myself, only pay a visit this web page all the time since it offers quality contents, thanks
I loved as much as you’ll receive carried out right here.
The sketch is attractive, your authored subject matter stylish.
nonetheless, you command get bought an impatience over that you
wish be delivering the following. unwell unquestionably
come more formerly again since exactly the same nearly
a lot often inside case you shield this increase.
I read this piece of writing fully regarding the comparison of most recent and previous technologies, it’s amazing
article.
Hey there! Would you mind if I share your blog with my twitter group?
There’s a lot of folks that I think would really enjoy your content.
Please let me know. Thank you
I’m no longer positive where you are getting your information, however good topic.
I needs to spend a while learning more or figuring out more.
Thanks for wonderful info I used to be searching for this information for my mission.
ivermectin 2ml
Wow that was strange. I just wrote an really 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
great blog!
Asking questions are genuinely good thing if you are not understanding anything totally, however
this post offers good understanding yet.
stromectol 12mg online
Hello mates, its great post on the topic of tutoringand completely explained, keep it up
all the time.
Thank you for the auspicious writeup. It
in fact was a amusement account it. Look advanced to more
added agreeable from you! However, how can we communicate?
When some one searches for his required thing, thus he/she desires to be available that
in detail, thus that thing is maintained
over here.
sildenafil citrate tablets 100mg
My brother suggested I would possibly like this blog.
He was totally right. This publish truly made my day. You cann’t imagine just how much time I had spent for this info!
Thanks!
I am extremely impressed with your writing skills and also
with the layout on your blog. Is this a paid theme or did you customize it yourself?
Anyway keep up the excellent quality writing, it is rare to see
a nice blog like this one today.
Terrific post but I was wondering if you could write a litte more on this subject?
I’d be very grateful if you could elaborate a little bit further.
Many thanks!
Hey There. I found your blog using msn. This is an extremely well written article.
I’ll be sure to bookmark it and return to read more
of your useful information. Thanks for the
post. I will certainly comeback.
For newest news you have to pay a quick visit internet and on internet I
found this site as a best site for newest updates.
I love what you guys are usually up too.
This type of clever work and exposure! Keep up the wonderful works guys I’ve incorporated you guys to my personal blogroll.
sildenafil 50 mg
Hi, just wanted to mention, I loved this post. It was practical.
Keep on posting!