Python Pattern Program - Printing Names in The Center Of The Heart

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

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

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

    Ur whole playlist is awesome pls always add on videos whenever u are free it's really helpful for me

  • @mohammadshahadathossain1544
    @mohammadshahadathossain1544 5 ปีที่แล้ว +2

    The lecture is undoubtedly convenient for beginners like me. Thanks for your explanation in details

  • @rajabhishek2936
    @rajabhishek2936 6 ปีที่แล้ว +3

    Nice video explained super duper. Please madam mini project upload so helpfull for everyone and your channel

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว +1

      Sure will do soon:)
      Thank you:)

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

    in 12:20 when the text is larger, can you explain how we can fix that problem with out changing the number to 20? meaning the word will fit to the shape like "amuls" in one line fit to the stars and academy will go to new line

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

      You can remove the space between the characters.
      :)

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

    Nice explaination

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

    If we give the input as a number 100 what will be the output is it print the stars in the correct pattern

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

    Mam.I want full code can you please send me

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

    U can change the no. of columns with reference to the given name ryt!!! No need of user input

  • @Jayapratha-js4ip
    @Jayapratha-js4ip 2 ปีที่แล้ว

    Pls put that cod in discription

  • @P.C.Bhelpers
    @P.C.Bhelpers ปีที่แล้ว

    python program to print patttern of stars heart shape in the middle of happpy children's day doubt dii

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

    I want this code... please send me

  • @mubasirmk8987
    @mubasirmk8987 2 หลายเดือนก่อน

    num = int(input("enter any number:"))
    msg= (input("enter any message:"))
    l = len(msg)
    n = num//2
    for i in range(n):
    print(" "*(n-i-1) + "* "*(i+1),end="")
    if num%2==0:
    for j in range(2*(n-i-1)):
    print(" ",end ="")
    else:
    for j in range(2*(n-i-1)+1):
    print(" ",end="")
    for j in range(i+1):
    print("* ",end ="")
    print()
    print("* "*((num-1)//2) + " ".join(msg) + "* "*((num-1)//2) )
    for i in range(num,0,-1):
    print(" "*(num-i) + "* "*(i)) is there any mistake i am getting extra one star after in 5th row

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

    Can we print two alphabets character pattern in one line i.e not in next line but next(right side of it) to the first pattern
    And also can I follow you on Instagram - mine is - kaidi_no.25

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

      Yes we can .
      This code will print NO.
      for i in range(5):
      for j in range(10):
      if j==0 or j==4 or j==6 or j==9 or (i==j and j5):
      print("*",end="")
      else:
      print(end=" ")
      print()
      1. write down the pattern on paper.
      2.both alphabet should contain same number of rows.
      3. write down the condition in which row and column you want star.
      I don't have Instagram account now.
      Will join soon :)
      :)

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

      @@AmulsAcademy thank you now I understood how to do it😊

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

      @@AmulsAcademy but I want that user enter input and that print in the same as above you done

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

      Welcome :)

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

      Then you need to write the condition for every alphabet, and you need to check the input characters with alphabets.
      It will be lengthy.
      :)

  • @mubasirmk8987
    @mubasirmk8987 2 หลายเดือนก่อน

    n = 8
    m = n+1
    for i in range(n//2-1):
    for j in range(m):
    if i == n//2-2 and (j == 0 or j == m-1):
    print("*", end=" ")
    elif j m//2 and ((i+j == n//2-3+m//2 and j < 3*m//4) \
    or (j-i == m//2-n//2+3+m//2 and j >= 3*m//4)):
    print("*", end=" ")
    else:
    print(" ", end=" ")
    print()
    for i in range(n//2-1, n):
    for j in range(m):
    if (i-j == n//2-1) or (i+j == n-1+m//2):
    print('*', end=" ")
    elif i == n//2-1:
    if j == m//2:
    print('A', end=" ")
    elif j == m//2+1:
    print('B', end=" ")
    elif j == m//2+2:
    print('C', end=" ")
    else:
    print(' ', end=" ")
    else:
    print(' ', end=" ")
    print()
    output is
    * * * *
    * * *
    * *
    * A B C *
    * *
    * *
    * *
    *
    this will print like this can you simplify this