ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Python Pattern Program - Printing Stars in Heart Shape

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ส.ค. 2024
  • In this Python Pattern Programming video tutorial you will learn How to print stars in heart shape in detail.
    To print stars in heart shape we will use nested for loops. One for loop is for row and another one is for column .
    This pattern is the combination of other three pattern.
    To print stars in pyramid shape:
    • Python Pattern Program...
    Hollow heart pattern:
    • Python Pattern Program...
    #PythonPatternProgram #PythonPrograms
    For more free tutorials on computer programming
    / amulsacademy
    / amulsacademy

ความคิดเห็น • 44

  • @tqsdip
    @tqsdip 4 ปีที่แล้ว +8

    One small correction to your code in case of odd number is:
    extreme left is not matching with extreme right of the heart.
    num=int(input('enter the no: '))
    for i in range(num):
    for j in range(num-i-1):
    print(" ",end='')
    for j in range(i+1):
    print('* ',end='')
    for j in range(2*(num-i-1)):
    print(" ",end='')
    for j in range(i+1):
    print('* ',end='')
    print()
    for i in range(2*num,0,-1):
    for j in range(2*num-i):
    print(" ",end='')
    for j in range(i):
    print('* ',end='')
    print()
    The avobe code will work without any if condition.
    @Amulya's Academy
    Thanks for the tutorial though. It was really helpfull.:)

  • @MrWho-zp7nb
    @MrWho-zp7nb 3 ปีที่แล้ว +2

    Most underrated video I found on this topic. Really great explanation...

  • @ikemikesee1824
    @ikemikesee1824 ปีที่แล้ว

    I have never seen anyone who explained python like you. You are an intellectual blessing

  • @56ushodayareddy96
    @56ushodayareddy96 4 ปีที่แล้ว +4

    Ur voice is simply awesome,,and ur explanation is double awesome

  • @chirag.2407
    @chirag.2407 2 ปีที่แล้ว

    Thank you very much I have sceen many videos but it didn't worked but your video program was worked keep doing like this

  • @nikitakhale9172
    @nikitakhale9172 2 ปีที่แล้ว

    Amazing explanation ..You have described each and every word in this program very smoothly so that no one can get a doubt .. Thankyou so much 😊

  • @donpilarsuarezgudino5160
    @donpilarsuarezgudino5160 2 ปีที่แล้ว +1

    You're inspiring!!

  • @tshepangmanase3704
    @tshepangmanase3704 3 ปีที่แล้ว +1

    Dawg I appreciate you, this was very helpful.

  • @sumitsaha4124
    @sumitsaha4124 5 ปีที่แล้ว +1

    for symmetric output , use

  • @md.alamgirchowdhury9084
    @md.alamgirchowdhury9084 ปีที่แล้ว

    Very good presentation 👍👍👍👍👍

  • @ashureddy4995
    @ashureddy4995 ปีที่แล้ว

    You are teaching well 😇😇

  • @kesavarao4757
    @kesavarao4757 2 ปีที่แล้ว

    Tnq so much sharing ur knowledge

  • @madankumarlopinti7962
    @madankumarlopinti7962 ปีที่แล้ว

    Nice explaination medam tq

  • @whitehat.h9232
    @whitehat.h9232 2 ปีที่แล้ว

    Awesome mam
    Nice voice 💥💥

  • @imedayari1
    @imedayari1 5 ปีที่แล้ว +1

    very useful tuto, thank you amuls
    but for odd numbers the output is not symmetric

  • @MrTaraknathdey
    @MrTaraknathdey 3 ปีที่แล้ว +1

    3rd part you can do by :
    for i in range(8):
    print(i*' ',(8-i)*'* ',end='')

  • @sk-xs3cd
    @sk-xs3cd 2 ปีที่แล้ว

    Can we randomly delete the stars based on user input once it printed?

  • @sanjaykumardasari3230
    @sanjaykumardasari3230 3 ปีที่แล้ว

    eliminating the first line gives perfect heart

  • @shaikansarbasha4169
    @shaikansarbasha4169 5 ปีที่แล้ว +1

    Excellent

  • @ashakumaei7085
    @ashakumaei7085 2 ปีที่แล้ว

    I creat this pattern in java and c++ also but i want to rotate this design

  • @PRADEEP_SUNKARI
    @PRADEEP_SUNKARI 4 ปีที่แล้ว +1

    Superr

  • @isikajain5525
    @isikajain5525 5 ปีที่แล้ว +1

    thnks

  • @rosemarietsai1277
    @rosemarietsai1277 5 ปีที่แล้ว +1

    what does num %2 mean?

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว

      For even numbers :)

    • @AbduRahimShaikh
      @AbduRahimShaikh 4 ปีที่แล้ว +1

      % means reminder if that number
      15%2 it gives 1

  • @rajabhishek2936
    @rajabhishek2936 5 ปีที่แล้ว +1

    Nice plz mini project

  • @kvnnaiduarikatla6284
    @kvnnaiduarikatla6284 5 ปีที่แล้ว +1

    Do vedeo on tower of hanoi

  • @johnstabbyman5704
    @johnstabbyman5704 5 ปีที่แล้ว

    Where did you get the formula 4-i-1?

    • @johnstabbyman5704
      @johnstabbyman5704 5 ปีที่แล้ว +1

      Nm I understand. Thanks for the video.

  • @0I_am_human0
    @0I_am_human0 ปีที่แล้ว

    ok

  • @suyashyadav9081
    @suyashyadav9081 2 ปีที่แล้ว

    Error

  • @Jay_Pee
    @Jay_Pee 4 ปีที่แล้ว

    Will you show us your face please one time only...

  • @akilap3284
    @akilap3284 3 ปีที่แล้ว

    Very Nice!Can you make an video on Pyramid number for this pattern. Thanks!
    1
    1 1
    1 2 1
    1 2 2 1