Contoh Soal Pemrograman – Pola Segitiga Siku-siku

Pemrograman Python

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 forin.

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.

48,517 thoughts on “Contoh Soal Pemrograman – Pola Segitiga Siku-siku

  1. Духовные расстановки. Организационные расстановки. Структурные расстановки. Метод системных семейных расстановок. Системные перестановки. Метод Берта Хеллингера. Семейное консультирование и психотерапия. Организационные расстановки. Метод системных семейных расстановок. Расстановки. Расстановки по Хеллингеру. Метод Берта Хеллингера. Системно-феноменологическая психотерапия. Организационные расстановки. Новые семейные расстановки. Системные расстановки. Системно-семейные расстановки. Bert Hellinger.

    Любовь должна быть включена в порядок. Порядок является предпосылкой любви. Это действует и в природе: дерево развивается согласно внутреннему порядку. Его нельзя изменить. Оно может развиваться только в рамках этого порядка. То же самое касается любви и межличностных отношений: они могут получить свое развитие только в рамках порядка. Этот порядок задан.
    Второй порядок состоит в том, что между партнерами должен быть баланс между «давать» и «брать». Если один вынужден давать больше, чем другой, это разрушает отношения. Партнерству необходим этот баланс.
    Одной из составляющих хороших взаимоотношений является баланс брать-давать. Это о том, что мы вкладываем примерно столько сил, времени, ресурсов, сколько получаем взамен. Когда мы получаем отклик от мира, от людей, у нас волшебным образом появляются силы и желание давать больше. Мы чувствуем себя нужными, счастливыми, в гармонии с собой и миром.

    Но иногда этот баланс может нарушаться. Человек начинает или слишком много давать, или слишком много брать.

    ——
    Системно-феноменологический подход. Глубинные системные расстановки. Системные расстановки. Новые семейные расстановки. Организационные расстановки. Расстановки по Хеллингеру. Растановки. Новые семейные расстановки. Метод семейных расстановок по Берту Хеллингеру. Организационные расстановки. Духовные расстановки. Системно-феноменологическая психотерапия.
    ——
    Истощение накапливается незаметно, медленно, но оно неутомимо приводит к неким последствиям.

    Когда человек даёт больше, чем получает, то со временем в нём накапливается неудовлетворённость всем происходящим: “Я стараюсь, а меня не ценят”, “Я же всё делаю для всех, а чувствую себя таким несчастным”, “Они не благодарны”, “Я последнюю рубаху отдам, а мне никто не поможет” и т. д. И это ожидаемый эффект от такого неуважительного отношения к собственным ресурсам и потребностям.

    Баланс – основа жизни. Он чрезвычайно важен как в природе, как внутри человеческого организма, так и во взаимоотношениях. Желаю всем найти этот баланс и никогда не терять его.

    Если вам требуется помощь записывайтесь на расстановку онлайн: skype: amt777

    Организационные расстановки. Системные перестановки. Системные перестановки. Метод расстановок. Организационные расстановки. Новые семейные расстановки. Метод Берта Хеллингера. Новые семейные расстановки. Метод расстановок. Системные расстановки. Расстановки по Хеллингеру. Глубинные системные расстановки. Системные-расстановки. Структурные расстановки. Метод семейных расстановок по Берту Хеллингеру. Системно-феноменологическая психотерапия. Системно-феноменологический подход. Глубинные системные расстановки.

  2. It is appropriate time to make some plans for the future and
    it’s time to be happy. I have read this post and if I could I desire to
    suggest you few interesting things or tips.
    Maybe you could write next articles referring to this article.
    I want to read more things about it! http://ciaalis2u.com/

  3. A fascinating discussion is definitely worth comment.
    There’s no doubt that that you need to write more on this issue, it might not be a taboo subject
    but typically people do not discuss these topics.
    To the next! Kind regards!!

  4. Does your website have a contact page? I’m having a tough time locating it
    but, I’d like to shoot you an e-mail. I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it expand over time.

    my web blog … aniene.net

  5. 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 can do with a few pics to drive the
    message home a bit, but instead of that, this is excellent blog.
    A great read. I’ll definitely be back.

  6. Hi there! I know this is somewhat off topic but I was
    wondering if you knew where I could locate a captcha
    plugin for my comment form? I’m using the same blog
    platform as yours and I’m having difficulty finding one?

    Thanks a lot!

  7. When I initially commented I appear to have clicked the -Notify me when new comments are
    added- checkbox and now whenever a comment is added I recieve 4 emails with the same comment.
    There has to be a means you can remove me from that service?
    Thank you!

  8. I am really enjoying the theme/design of your web site.
    Do you ever run into any internet browser compatibility
    issues? A few of my blog readers have complained about my blog not operating correctly in Explorer but looks great in Chrome.
    Do you have any tips to help fix this issue?

    Here is my web-site: https://plansite.group

  9. Just want to say your article is as amazing. The clarity
    in your post is just spectacular and i can assume you are an expert on this subject.
    Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post.

    Thanks a million and please continue the gratifying work.

    my web blog … sex tips for men

  10. Hi, i read your blog occasionally and i own a similar one and i was
    just curious if you get a lot of spam comments?

    If so how do you stop it, any plugin or anything you can suggest?
    I get so much lately it’s driving me mad
    so any support is very much appreciated.

  11. Good day I am so happy I found your website, I really found
    you by error, while I was researching on Yahoo for something else, Nonetheless I am here now
    and would just like to say kudos for a incredible
    post and a all round exciting blog (I also love the theme/design), I don’t have time to
    go through it all at the minute but I have book-marked it and also included your
    RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the superb jo. http://antiibioticsland.com/Augmentin.htm

  12. It’s a shame you don’t have a donate button! I’d definitely donate to this superb blog!
    I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account.

    I look forward to fresh updates and will share this blog with my Facebook group.
    Talk soon!

  13. I have read so many articles or reviews about the blogger lovers however this piece of writing is really a pleasant
    paragraph, keep it up.

  14. Simply desire to say your article is as astonishing.
    The clearness for your publish is just spectacular and i can suppose
    you are an expert in this subject. Fine together with
    your permission allow me to seize your feed to keep updated with coming near near post.
    Thanks a million and please continue the rewarding work.

  15. Hey there would you mind stating which blog platform you’re using?
    I’m going to start my own blog in the near future but I’m having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m looking for something
    unique. P.S Apologies for being off-topic but I
    had to ask!

  16. Hi there! This post couldn’t be written any better!
    Looking at this post reminds me of my previous roommate!

    He constantly kept talking about this. I’ll forward this post to him.
    Fairly certain he will have a very good read.
    I appreciate you for sharing!

Comments are closed.