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.
Great looking site. Assume you did a whole lot of your own coding. https://ketogendiet.net/
https://bit.ly/gtom-ua-2021-seriyal
sildenafil tablets 100mg india
accutane 10mg for sale – buy accutane online australia buy isotretinoin
awat bokani new
erectafil 5 mg
ivermectin online
how much is ivermectin
buy cialis online europe
https://bit.ly/vne-sebya-2021-goda
Hello, Neat post. There is an issue along with your website in internet explorer, may test this?
IE still is the market chief and a large part of people will
pass over your wonderful writing because of this problem.
tadalafil tablets 60mg
purchase amoxil 1000mg online – amoxicilin no prescription amoxicillin walgreens
Hi! This is kind of off topic but I need some help from an established
blog. Is it very difficult to set up your own blog?
I’m not very techincal but I can figure things out pretty quick.
I’m thinking about setting up my own but I’m not sure where to begin. Do you have
any ideas or suggestions? Thank you
I am in fact thankful to the owner of this site who has shared this impressive post at at this place.|
The devils children have the devils luck.
super god
That is a very good tip especially to those fresh to the blogosphere.
Simple but very precise info… Thank you for sharing this one.
A must read post!
allopurinol 100mg uk
https://bit.ly/vne-sebya-2021-goda
Fantastic site. A lot of helpful information here. I am sending it to some friends ans also sharing in delicious.
And certainly, thanks in your effort! https://prescriptiondrugswithoutdoctorapproval.com/cialis/
WOW just what I was searching for. Came here by searching for airflow air conditioning
casino online usa – best casino slot games online casino games for real money
cephalexin capsules 500mg
WOW just what I was looking for. Came here by searching
for recruitment firm
Kamagra Heart Attack generic viagra offers
cialis generic buy
sheila lora
Link exchange is nothing else but it is simply placing the other person’s webpage link on your page at suitable place and other person will also do same in favor of you.
mel gibson childhood
how much is sildenafil 25 mg
This is really interesting, You’re a very skilled blogger.
I’ve joined your feed and look forward to seeking more
of your wonderful post. Also, I have shared your website
in my social networks!
neurontin 100mg caps
cleocin vaginal suppository
comprar viagra generico sin receta cialis prices
stromectol online pharmacy
Everyone loves what you guys are usually up too. This type
of clever work and coverage! Keep up the amazing works
guys I’ve added you guys to our blogroll.
Achat Viagra Livraison Rapide buy cialis online 20mg
ivermectin 3 mg for people – buy ivermectin 6mg buy stromectol for humans
My partner and I stumbled over here coming
from a different web address and thought I
might as well check things out. I like what I see
so i am just following you. Look forward to finding out about your web page for a second time.
ivermectin 4000
My programmer is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the
expenses. But he’s tryiong none the less.
I’ve been using Movable-type on several 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 transfer all my wordpress content into it?
Any help would be really appreciated!
It’s perfect time to make some plans for the future and it’s time to be happy.
I’ve read this post and if I could I desire to suggest you some
interesting things or advice. Perhaps you could write next
articles referring to this article. I wish to read more things about it!
cialis prescription australia
Strattera cheap cialis online
I really like your blog.. very nice colors & theme.
Did you design this website yourself or did you
hire someone to do it for you? Plz respond as I’m looking to create my own blog and would like to
know where u got this from. thanks
Cephalexin Warnings purchase cialis online
budesonide online
lexapro 2017
Hi, Neat post. There’s a problem together with your site in internet explorer,
may test this? IE nonetheless is the marketplace chief and
a good component to other folks will omit your magnificent writing due to this
problem.