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.
Undeniably believe that that you stated. Your favorite justification appeared to be on the web the easiest factor to understand of.
I say to you, I certainly get annoyed even as folks think
about issues that they plainly don’t recognise about.
You managed to hit the nail upon the highest as smartly as outlined out the
entire thing without having side-effects , other folks can take a
signal. Will likely be back to get more. Thank you
Thanks for one’s marvelous posting! I certainly enjoyed reading it, you are a great author.
I will make certain to bookmark your blog and will eventually come back at some point.
I want to encourage you continue your great job, have a nice weekend!
Excellent items from you, man. I’ve consider your stuff prior
to and you are simply too magnificent. I actually like
what you’ve bought here, certainly like what you are stating
and the way in which you are saying it. You make it enjoyable and you continue
to take care of to stay it wise. I can’t wait to read much more from you.
This is really a great website.
Hello there! This is my first visit to your blog!
We are a team of volunteers and starting a new initiative in a community in the same niche.
Your blog provided us valuable information to work on. You have
done a outstanding job!
I used to be able to find good information from your blog articles.
Great information. Lucky me I recently found your
website by accident (stumbleupon). I have book-marked it for later!
Definitely believe that which you said. Your favorite reason appeared
to be on the internet the easiest thing to be aware
of. I say to you, I definitely get irked while people consider worries that
they plainly do not know about. You managed to hit the nail upon the top and also defined out the
whole thing without having side-effects , people can take a signal.
Will probably be back to get more. Thanks
Hello, I think your blog might be having browser compatibility issues.
When I look at your blog in Ie, it looks fine but when opening in Internet
Explorer, it has some overlapping. I just wanted to give you a quick heads up!
Other then that, terrific blog!
I am regular visitor, how are you everybody? This article posted at this site is in fact good.
It’s not my first time to pay a quick visit this website,
i am visiting this web page dailly and take good facts from here
every day.
Wonderful blog! I found it while searching on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to get there!
Cheers
Nice answers in return of this difficulty with genuine arguments and describing the whole thing regarding
that.
Hi there, yes this paragraph is in fact nice and
I have learned lot of things from it on the topic of blogging.
thanks.
Hi to every body, it’s my first visit of this blog;
this weblog consists of amazing and genuinely fine information in favor of visitors.
nolvadex 40mg price in india
I like the valuable information you provide on your articles.
I’ll bookmark your weblog and test once more here regularly.
I am slightly sure I’ll be informed plenty of new stuff proper here!
Best of luck for the following!
I like the helpful information you provide to your articles.
I will bookmark your weblog and test again here regularly.
I’m rather sure I will be told plenty of new stuff right here!
Best of luck for the following!
Do you have a spam problem on this website; I also am a blogger, and I was wanting to know your situation; many of us
have created some nice practices and we are looking to exchange
strategies with others, please shoot me an e-mail if interested.
I could not resist commenting. Very well written!
I was suggested this website by way of my cousin. I am now not positive whether this put up is written via him as no
one else understand such specified about my trouble.
You are wonderful! Thanks!
my web blog: carb diet
I read this piece of writing completely on the topic of the resemblance of latest and earlier
technologies, it’s awesome article.
canadian compounding pharmacy
Excellent way of describing, and pleasant piece of writing to
obtain facts regarding my presentation subject, which i am going to deliver in school.
https://isotroinisotretinoin.com/ accutune
Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your site?
My blog is in the very same niche as yours and my visitors would truly
benefit from some of the information you provide here. Please let
me know if this alright with you. Regards!
It’s genuinely very difficult in this full of activity life to listen news on TV, thus I only use web for that purpose, and take the newest information.
It’s really a nice and useful piece of information. I’m happy that you
shared this helpful information with us. Please stay us informed like
this. Thanks for sharing.
Hello just wanted to give you a quick heads up. The words in your post seem to be running off
the screen in Ie. I’m not sure if this is a format issue or something to do with web browser compatibility but I thought I’d post to
let you know. The design and style look great
though! Hope you get the problem solved soon. Kudos
If you wish for to get a good deal from this article then you
have to apply these strategies to your won blog.
What’s up 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 users.
Hello, i think that i noticed you visited my blog so i
got here to return the choose?.I’m attempting to in finding things
to improve my site!I guess its adequate to use a few of your ideas!!
Here is my page … top ten skin
Hello, after reading this awesome post i am too cheerful to share my familiarity here with mates.
Its like you read my mind! You appear to know a lot 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 excellent blog.
An excellent read. I will certainly be back.
I know this if off topic but I’m looking into starting my own weblog and was wondering
what all is required to get setup? I’m assuming having a blog
like yours would cost a pretty penny? I’m not very
web smart so I’m not 100% positive. Any recommendations or advice would be greatly appreciated.
Appreciate it
I all the time emailed this webpage post page to all my friends, for
the reason that if like to read it afterward my links will too.
I got this site from my friend who informed me concerning this web site and at
the moment this time I am browsing this web site and reading very informative posts here.
drugs online canada
Its like you read my mind! You appear to know a lot about this, like you wrote
the book in it or something. I think that you can do with a
few pics to drive the message home a little bit, but other than that, this is excellent
blog. A great read. I’ll definitely be back.
Wonderful site you have here but I was wondering if
you knew of any message boards that cover the
same topics discussed in this article? I’d really love to be a part of community where I
can get responses from other knowledgeable people that share the same
interest. If you have any suggestions, please let me know. Thanks
a lot!
sildenafil 50 mg online us
Wow, awesome blog layout! How long have you been blogging
for? you make blogging look easy. The overall look of your website is magnificent, let alone the content!
Can you tell us more about this? I’d like to find out
some additional information.
Excellent beat ! I wish to apprentice at the same time as you amend your web
site, how can i subscribe for a weblog site? The account aided me a applicable deal.
I have been a little bit familiar of this your broadcast provided vibrant clear concept
My developer is trying to convince me to move
to .net from PHP. I have always disliked the idea because of the costs.
But he’s tryiong none the less. I’ve been using Movable-type on a number
of websites for about a year and am worried about switching to another platform.
I have heard very good things about blogengine.net.
Is there a way I can import all my wordpress posts into it?
Any help would be really appreciated!
Hi, i read your blog from time to time and i own a similar
one and i was just curious if you get a lot of spam feedback?
If so how do you protect against it, any plugin or anything you can advise?
I get so much lately it’s driving me insane so any assistance is very much appreciated.
Normally I don’t learn post on blogs, however I would like to say
that this write-up very pressured me to try and do it! Your writing taste has
been surprised me. Thank you, quite great post.
We’re a group of volunteers and opening a brand new scheme in our community.
Your web site provided us with useful info to work on.
You’ve done a formidable job and our whole community shall be grateful to you.
cialis 20mg for sale
Good day! I know this is kinda off topic however , I’d figured I’d ask.
Would you be interested in exchanging links or maybe
guest writing a blog article or vice-versa?
My site covers a lot of the same topics as yours and I feel we could
greatly benefit from each other. If you are interested feel free to shoot me an e-mail.
I look forward to hearing from you! Awesome blog by the way!
Hmm it appears like your blog ate my first comment (it was extremely long) so I
guess I’ll just sum it up what I submitted
and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but
I’m still new to everything. Do you have any helpful hints for novice blog writers?
I’d genuinely appreciate it.