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.
I’d like to find out more? I’d care to find out more details.
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 waste your intelligence on just posting videos to your site when you could be giving us something
informative to read?
This page definitely has all of the information and facts I needed
concerning this subject and didn’t know who to ask.
Hello, every time i used to check webpage posts here early in the dawn, for the reason that i like to learn more and more.
Hi! I know this is kinda off topic nevertheless 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 discusses a
lot of the same subjects as yours and I think we could greatly benefit from each
other. If you happen to be interested feel free to shoot me an email.
I look forward to hearing from you! Fantastic blog
by the way!
It’s wonderful that you are getting thoughts from this article as well as from our argument made here.
I don’t even know the way I stopped up here, however I thought this post used to be good.
I do not recognise who you are but certainly you are going to a well-known blogger if
you are not already. Cheers!
If some one wants expert view about running a blog afterward i recommend him/her to pay a visit this weblog, Keep up the pleasant work.
Howdy are using WordPress for your blog platform?
I’m new to the blog world but I’m trying to get started and create my own. Do you require any html coding expertise to make your own blog?
Any help would be greatly appreciated!
I’m impressed, I must say. Rarely do I come across a blog that’s both equally educative and interesting,
and let me tell you, you have hit the nail on the head.
The problem is something that too few people are speaking intelligently about.
I’m very happy I found this during my search for something regarding this.
If you want to grow your know-how simply keep visiting this web site and be updated with the latest
news posted here.
Fantastic beat ! I wish to apprentice while you amend your site, how could i subscribe for a
blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast
offered bright clear idea
Hi 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 greatly appreciated!
Hello, i think that i saw you visited my web site thus i came to “return the favorâ€.I am trying
to find things to improve my site!I suppose its ok
to use some of your ideas!!
Because the admin of this web page is working,
no question very rapidly it will be well-known, due to its quality contents.
Good replies in return of this matter with solid arguments
and telling the whole thing regarding that.
A motivating discussion is definitely worth comment.
I do think that you ought to publish more on this topic, it
might not be a taboo subject but typically folks don’t discuss these subjects.
To the next! Best wishes!!
No matter if some one searches for his vital thing, therefore he/she wants to be available that in detail, thus
that thing is maintained over here.
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 responses would be greatly appreciated.
I know this web site gives quality depending posts and extra stuff, is there any other web page which provides these data in quality?
Whenn registering for a Player Account, an Intending Payer will be expected to make a Username and
Password.
Take a look at my web blog: 온라인카지노사이트
Truly no matter if someone doesn’t be aware of afterward its up to
other people that they will assist, so here it takes place.
Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that
I acquire actually enjoyed account your blog posts.
Anyway I’ll be subscribing to your feeds and
even I achievement you access consistently rapidly.
Keep this going please, great job!
For most up-to-date information you have to go to see web and on internet I found this web page as
a finest web site for latest updates.
For most up-to-date news you have to pay a quick visit world wide web and on the web I found this web site as a most excellent site for latest updates.
I’m not sure why but this weblog is loading very 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.
Very nice post. I just stumbled upon your blog and wanted to say that
I have truly enjoyed surfing around your blog posts.
In any case I will be subscribing to your feed and I hope you
write again soon!
Hey would you mind letting me know which web host you’re using?
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 hosting provider at a reasonable price?
Cheers, I appreciate it!
This article is in fact a good one it assists new the web users, who
are wishing for blogging.
Hi there, I enjoy reading through your post. I wanted to write a little comment to support
you.
Hurrah! After all I got a web site from where I be capable of truly get useful
information regarding my study and knowledge.
Ahaa, its nice discussion on the topic of this article at this place at
this web site, I have read all that, so now me also commenting at this place.
What’s up friends, its wonderful post on the topic of teachingand fully defined, keep it up all the time.
great issues altogether, you just received a logo new reader.
What could you suggest in regards to your put up that you simply
made a few days in the past? Any positive?
What’s up, its fastidious post concerning media print, we all be familiar with media is a
impressive source of facts.
At this moment I am going away to do my breakfast, later than having my breakfast coming again to read additional news.
Hi! Do you know if they make any plugins to help with Search Engine
Optimization? I’m trying to get my blog to rank for some
targeted keywords but I’m not seeing very good success.
If you know of any please share. Cheers!
I have learn some good stuff here. Definitely value
bookmarking for revisiting. I wonder how much attempt you set to make such a wonderful informative web site.
It’s the best time to make some plans for the long run and it’s time to be happy.
I’ve read this post and if I could I want to counsel you some attention-grabbing issues or
tips. Maybe you could write subsequent articles relating to
this article. I wish to read even more things about it!
If some one wishes expert view concerning blogging afterward i recommend him/her to go
to see this webpage, Keep up the pleasant work.
Attractive section of content. I simply stumbled upon your weblog and in accession capital
to say that I acquire in fact loved account your blog posts.
Any way I’ll be subscribing on your feeds and even I achievement you get admission to consistently quickly.
This site was… how do I say it? Relevant!! Finally I’ve found something that helped me.
Kudos!
Hi, 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 stop it, any
plugin or anything you can advise? I get so much lately it’s driving me mad so any help is
very much appreciated.
Its like you read my mind! You seem 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 magnificent blog.
A great read. I will definitely be back.
Helpful info. Lucky me I discovered your web site by accident, and I’m
shocked why this twist of fate didn’t came about in advance!
I bookmarked it.
fantastic publish, very informative. I ponder why the opposite experts of this sector don’t realize this.
You must proceed your writing. I’m sure, you’ve a huge readers’
base already!
Heya! I just wanted to ask if you ever have any
issues with hackers? My last blog (wordpress) was hacked and I ended up losing
a few months of hard work due to no data backup.
Do you have any methods to stop hackers?
These are truly impressive ideas in on the topic of blogging.
You have touched some fastidious factors here.
Any way keep up wrinting.
Excellent article. I’m going through a few of these issues as well..