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.
Hi there, I enjoy reading all of your article post. I like to write a little comment to support you.
Hey! This is kind of off topic but I need some help from an established blog.
Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty fast.
I’m thinking about setting up my own but I’m not sure where to start.
Do you have any points or suggestions? Appreciate it
I’m curious to find out what blog platform you have been working with? I’m experiencing some small security problems with my latest blog and I’d like to find something more safe. Do you have any suggestions?|
Very descriptive post, I lkked tһɑt а ⅼot. Will there Ƅe a part
2?
Checkk out mmy blog … जारी रखें पढ़ रहे हैं
What’s Taking place i am new to this, I stumbled upon this I have found It
positively helpful and it has aided me out loads. I am hoping to
give a contribution & aid other users like its aided me.
Great job.
Keep on writing, great job!
I constantly spent my half an hour to read this blog’s posts everyday along
with a mug of coffee.
Hi! This is kind of off topic but I need some help from an established
blog. Is it very hard to set up your own blog? I’m
not very techincal but I can figure things out pretty fast.
I’m thinking about setting up my own but I’m not sure where to begin. Do you
have any points or suggestions? Cheers
Excellent way of explaining, and nice paragraph to obtain facts on the topic of my presentation subject,
which i am going to present in university.
Hello mates, its enormous piece of writing concerning
educationand completely defined, keep it up all the
time.
This piece of writing will assist the internet viewers for
setting up new web site or even a weblog
from start to end.
Great post.
What’s Happening 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 give a contribution & help different users
like its helped me. Great job.
This is very interesting, You are a very skilled blogger.
I have joined your rss feed and look forward to seeking more of your wonderful post.
Also, I’ve shared your web site in my social networks!
The other day, while I was at work, my cousin stole my iphone and
tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My iPad
is now destroyed and she has 83 views. I know this is completely off topic but I had to share it with someone!
Hi just wanted to give you a brief heads up and let you know a few of the
images aren’t loading correctly. I’m not sure why but I think its a linking issue.
I’ve tried it in two different internet browsers and both show
the same outcome.
Hi there, this weekend is pleasant for me,
because this time i am reading this great educational article here at my residence.
my web blog agen slot deposit pulsa
The other day, while I was at work, my cousin stole
my iphone and tested to see if it can survive a 30 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 completely off topic
but I had to share it with someone!
This is my first time go to see at here and i am actually impressed to read all at alone place.
Very nice article, totally what I needed.
I’m gone to convey my little brother, that he should also
pay a visit this web site on regular basis to
obtain updated from hottest reports.
Hi mates, its impressive post concerning tutoringand
entirely explained, keep it up all the time.
Having read this I believed it was extremely informative.
I appreciate you taking the time and energy to put this article together.
I once again find myself spending way too much
time both reading and leaving comments. But so what, it was still worth it!
I’ve learn several just right stuff here.
Certainly worth bookmarking for revisiting. I wonder how a lot effort you place to
create the sort of great informative web site.
I loved as much as you’ll receive carried out right here.
The sketch is attractive, your authored material stylish.
nonetheless, you command get bought an edginess over that you wish be delivering the following.
unwell unquestionably come further formerly again as
exactly the same nearly a lot often inside case you shield
this increase.
naturally like your web-site but you need to test the spelling on quite a few of your posts.
Several of them are rife with spelling problems and I to find
it very bothersome to tell the reality however I’ll definitely come
back again.
Wonderful beat ! I would like to apprentice whilst you amend your site, how
could i subscribe for a weblog site? The account helped me a applicable deal.
I were tiny bit acquainted of this your broadcast provided vivid transparent idea
I appreciate, result in I discovered just what I was taking a look for.
You’ve ended my 4 day lengthy hunt! God Bless you man. Have
a great day. Bye
Post writing is also a fun, if you know after that you can write if not it is
difficult to write.
Link exchange is nothing else however it is simply placing
the other person’s blog link on your page at suitable place and other person will also do same for you.
Currently it seems like BlogEngine is the preferred blogging platform out there right now.
(from what I’ve read) Is that what you’re using on your blog?
It’s appropriate time to make a few plans for the long run and it’s time to be happy.
I’ve read this submit and if I may I want to counsel you few fascinating issues
or suggestions. Maybe you can write subsequent articles relating to
this article. I desire to read more things about it!
Excellent blog right here! Additionally your web site quite a bit up very fast!
What host are you the usage of? Can I get your associate link on your host?
I wish my web site loaded up as fast as yours lol
Excellent, what a web site it is! This weblog provides
helpful information to us, keep it up.
What’s Happening i am new to this, I stumbled upon this I have discovered It absolutely useful and it has helped me out loads.
I hope to give a contribution & aid different customers like its aided me.
Great job.
Hello there! I could have sworn I’ve been to this site
before but after reading through some of the post I realized it’s new to me.
Anyways, I’m definitely glad I found it and I’ll be book-marking
and checking back often!
If you wish for to get a good deal from this post then you have to apply such methods to
your won blog.
Wow, amazing weblog structure! How long have you ever been blogging for?
you made blogging glance easy. The overall glance of your site is magnificent, let alone the content material!
I read this paragraph completely concerning the comparison of latest and preceding technologies,
it’s amazing article.
Hey there, You’ve done a great job. I’ll certainly digg it and
personally suggest to my friends. I am sure they will
be benefited from this site.
Does your site have a contact page? I’m having problems
locating it but, I’d like to shoot you an e-mail. I’ve got some
suggestions for your blog you might be interested in hearing.
Either way, great blog and I look forward to
seeing it grow over time.
Currently it appears like Expression Engine is the top blogging platform out there right now.
(from what I’ve read) Is that what you are using on your blog?
I like what you guys are usually up too. Such clever
work and exposure! Keep up the wonderful works guys I’ve added you guys to
blogroll.
Hi there! I just wanted to ask if you ever have
any issues with hackers? My last blog (wordpress) was hacked and I ended
up losing many months of hard work due to no back up.
Do you have any solutions to prevent hackers?
With havin so much content do you ever run into any issues of plagorism or copyright infringement?
My blog has a lot of exclusive content I’ve either created myself or outsourced but it appears a lot of it is popping
it up all over the internet without my permission. Do you know any solutions to help protect against content
from being ripped off? I’d truly appreciate it.
Its like you read my mind! You seem to know a lot about
this, like you wrote the e-book in it or something. I
think that you just can do with some % to drive the message house a bit, however instead of that, that is great blog.
An excellent read. I’ll certainly be back.
Heya i’m for the first time here. I came across this
board and I find It truly helpful & it helped me out a lot.
I hope to provide something back and aid others like you aided me.
I’m gone to convey my little brother, that he should also pay a quick visit this web site
on regular basis to obtain updated from hottest information.
What you published made a bunch of sense.
But, think about this, suppose you typed a catchier title?
I ain’t saying your content isn’t good., however suppose you added a title that grabbed a person’s attention? I
mean Contoh Soal Pemrograman – Pola Segitiga Siku-siku – Umar faisol is a little plain. You should look at Yahoo’s home page
and see how they create news titles to get people
to open the links. You might add a video or a related
pic or two to grab people excited about what you’ve got to say.
Just my opinion, it would bring your posts a little livelier.
Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something.
I think that you could do with a few pics to drive the message home a bit, but other than that,
this is excellent blog. A fantastic read. I will certainly be back.