Python Pattern Program - Printing Stars in Hollow Diamond Shape

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

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

  • @sougatalegend6601
    @sougatalegend6601 4 ปีที่แล้ว +3

    Thanks....everytime.....for your every videos..as it always helps me a lot to deal with typical pythonn programs.......other teachers make it so complicated that it becomes very tough for me as a begginer....but you not only just write the program...but also you explain us using diagrams...and etc...etc...etc...you are awesome

  • @afifanan881
    @afifanan881 4 ปีที่แล้ว +3

    the way she teaches all these things is so simple and easy.

  • @aswinvignesh3985
    @aswinvignesh3985 3 ปีที่แล้ว +2

    For printing odd no of rows in this pattern go through this
    n = int(input('enter a no odd: '))
    tot = n//2
    for row in range(n):
    for col in range(n):
    if (row+col)==tot or (col-row)==tot or (row-col)==tot or (row+col)==tot*3:
    print('*',end=' ')
    else:
    print(end=' ')
    print()

  • @sunitapd07
    @sunitapd07 4 ปีที่แล้ว +3

    its working,
    else:
    print(" ",end="") Did this as per your suggestion

  • @shambhunathsoni8454
    @shambhunathsoni8454 5 ปีที่แล้ว +4

    Thank u so much u resolve all my problems in computer science now i can say that i can make program😊😊

  • @santhoshreddy6472
    @santhoshreddy6472 3 ปีที่แล้ว +2

    Telling from bottom of my heart ❤️
    You are really amazing
    The way of explanation is like awesome
    no words to describe you really hatsoff to you TQ so much
    Keep posting don't stop ur videos at any situation once again TQ so much

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

      Thank you so much 😊❤️

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

    I think This Row And Column matrix output diagram is The Best Way to Achieve the output and realize about code

  • @MDIMRAN-ze3rj
    @MDIMRAN-ze3rj 3 ปีที่แล้ว +3

    n = int(input("Enter the number of row (odd) : "))
    m = (n+1)/2
    for r in range(1,n+1):
    for c in range(1,n+1):
    if (c+r==m+1 or c-r == m-1 or r-c==m-1 or c+r==m+n):
    print("*",end="")
    else:
    print(end=" ")
    print()
    at last success

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

    def pattern (n):
    for i in range(n):
    for j in range(n):
    if i+j==(n-1)/2 or j-i==(n-1)/2 or i-j==(n-1)/2 or i+j==(3*(n-1))/2:
    print('*',end='')
    else:
    print(end=' ')
    print('
    ')
    pattern(11)

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

    Ma’am you’re amazing!!
    I love you ❤️

  • @akritirani4600
    @akritirani4600 4 ปีที่แล้ว +2

    Its working but what should the program be if I want to take the row and column from user

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

      You need to change if conditions :)

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

      @@AmulsAcademy mam please can you write the code for that

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

    we can also write it as for n terms as
    n=int(input("Enter a no"))
    a=n-1
    a=a/2
    for i in range(n):
    for j in range(n):
    if i+j==a or j-i==a or i-j==a or i+j==a*3:
    print("*",end="")
    else:
    print(end=" ")
    print()

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

      this code is not run after 5

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

      @@vipinsingh8706
      n=int(input('Enter the number'))
      m=n-n//2
      for i in range(1,n+1):
      for j in range(1,n+1):
      if i+j==m+1 or j-i==m-1 or i+j==n+m or i-j==n-m:
      print('*',end="")
      else:
      print(end=' ')
      print()

  • @chirag590
    @chirag590 6 ปีที่แล้ว +2

    Medamji u really awesome teaching I like it

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

    for row in range(5):
    for col in range(5):
    if row+col==2 or col-row==2 or row-col==2 or row+col==6:
    print("*",end=" '')
    else:
    print(" ",end=" ")
    print()

    But output is
    *
    * *
    * *
    * *
    *

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

      for row in range(5):
      for col in range(5):
      if row+col==2 or col-row==2 or row-col==2 or row+col==6:
      print("*",end=" ")
      else:
      print(" ",end=" ")
      print()
      It is working properly :)

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

    It is printing like as follows in 3.7 python:
    *
    **
    **
    **
    *.
    What is the solution for this?
    Please reply amulya..

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

      I think you missed else part.
      Please do check:)
      If not give me the program:)

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

      You print (" ",end=' ')

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

      just give space in end varialablr like end=" "

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

    Thank you sooo much for this tutorial!!!

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

    can you upload some series programs like sum of different terms
    number divided by its factorial and then added up

  • @TheaccountIuseformystudies
    @TheaccountIuseformystudies 4 หลายเดือนก่อน +2

    If you want to take input for this shape use this:
    num = int(input())
    for row in range(num):
    for col in range(num):
    if row+col==(num-1)/2 or col-row==(num-1)/2 or row-col==(num-1)/2 or row+col == 3*(num-1)/2:
    print("*", end="")
    else:
    print(" ", end="")
    print()

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

      this code is not working for input value 10

  • @JayHandles-J8S
    @JayHandles-J8S 3 ปีที่แล้ว +1

    Hey amulya can you tell why short circuit evaluation can't be used here? I see you were taking stars individually but in your previous videos. You didn't take it like that

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

      You can write it in different ways 😊

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

    thank you! I learned from this!

  • @user-no5nx9qn6q
    @user-no5nx9qn6q 3 ปีที่แล้ว +2

    GENERAL SOLUTION FOR ANY NUMBER OF ROWS:
    n=int(input("Enter number of rows: "))
    a=n//2
    for row in range(n):
    for col in range(n):
    if row+col==a or row-col==a or col-row==a or row+col==(n-1+a):
    print("*",end='')
    else:
    print(end=' ')
    print()

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

    superb explanation

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

    I am using python 3.9 ,what to use print statement at the end ... I didn't get result, can you please help me out

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

    n=int(input('Enter the number'))
    m=n-n//2
    for i in range(1,n+1):
    for j in range(1,n+1):
    if i+j==m+1 or j-i==m-1 or i+j==n+m or i-j==n-m:
    print('*',end="")
    else:
    print(end=' ')
    print()

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

    Good work continue....do you upload filehandling lecture?

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

      Thank you :)
      Yes, already uploaded few videos on that.
      :)

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

      Amuls Academy i mean vast this language talk about how to use in pygame

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

    If want to print no rows 5 Or 3 Then out is not coming correct please tell me

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

    found a simple way to generalize the code:
    x = #any odd integer
    for row in range(x):
    for col in range(x):
    if row + col == x // 2 or col - row == x // 2 or row - col == x // 2 or row + col == (x // 2) * 3:
    print("*", end = "")
    else:
    print(end = " ")

    print()
    EXPLANATION BELOW -
    #code for sized 5 diamond
    for row in range(5):
    for col in range(5):
    if row + col == 2 or col - row == 2 or row - col == 2 or row + col == 6:
    print("*", end = "")
    else:
    print(end = " ")

    print()
    #code for sized 7 diamond
    for row in range(7):
    for col in range(7):
    if row + col == 3 or col - row == 3 or row - col == 3 or row + col == 9:
    print("*", end = "")
    else:
    print(end = " ")

    print()
    If you look at the similarities between both codes. the first 3 conditions are always the same number, while the 4th condition is always 3 times the value of the first 3 conditions.
    So let's take the size of the diamond to be x and condition 1, 2, and 3 to be y. Since we know condition 4 is always 3 times the value of the first 3 conditions, we can call it y * 3.
    When x = 5, y = 2, and y * 3 = 6.
    When x = 7, y = 3, and y * 3 = 9.
    Now to figure out the correlation between x and y.
    If you take x // 2, the answer will always be y:
    5 // 2 == 2
    7 // 3 == 2
    so y * 3 will then be (5 // 2) * 3 = 6 and (7 // 2) * 3 = 9.
    Hope this helps!

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

    @amulya's academy how can we write this program of general purpose!!!!!

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

      This will work for odd number rows.
      n = int(input("rows:"))
      mid = n//2
      for i in range(n):
      for j in range(n):
      if i+j==mid or i-j==mid or j-i==mid or i+j==n+mid-1:
      print("*",end="")
      else:
      print(" ",end="")
      print()

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

      @@AmulsAcademy Is there a way it works for even AND odd??? :( Please help!!

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

      #printing rambus shaped stars
      num=int(input("enter the number of rows:"))
      for row in range(1,num+1):
      for col in range(1,num+1):
      if row+col==num-1 or col-row==num-3 or row-col==num-3 or row+col==num+3:
      print("*",end=" ")
      else:
      print(" ",end=" ")
      print()

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

    Instead of row+column=6 for row=column?it's correct mam.

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

    Mam I have written same code that you have told bt this code did not make a dimond, it only makes a straight line , mam plzz tell me how I can make it, I loved your way of teaching so I want that you guide me that what I can do

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

    How the user enter N number than hollow pattern

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

    mam how can we print stars for different input not for 4 like dynamic input other values like 5,6. this method don't work

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

    what if n is given by user?
    how the if condition will change frequently when we give value of n?

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

      #for user input n==1000
      n=int(input())
      for i in range(n*2):
      for j in range(n*2-1):#col in this 0 to 6
      m=((n*2-1)//2)
      k=m*3
      if (i+j==m) or (j-i==m) or (i-j==m and j(n-1)) :
      print("*",end="")
      else:
      print(" ",end="")
      print()

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

      num=int(input("enter the number of rows:"))
      for row in range(1,num+1):
      for col in range(1,num+1):
      if row+col==num-1 or col-row==num-3 or row-col==num-3 or row+col==num+3:
      print("*",end=" ")
      else:
      print(" ",end=" ")
      print()

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

      @@anilmacharla6939 i tried but it is not working

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

    What if we want stars in n Number of rows madam.please explain?

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

      1. Take input { number of rows } store it in a variable
      It is better to take odd number of row because we can’t print this pattern for even number of rows.
      2. for loop for n row
      3. Inside that take for loop for n column
      4. Use if condition to print star
      5. Else block to print space
      6. Print function outside insert loop.
      n = int(input(“rows:”))
      mid = n//2
      for i in range(n):
      for j in range(n):
      if i+j==mid or j-i==mid or i-j==mid or i+j==n+mid-1:
      print("*",end="")
      else:
      print(end=" ")
      print()

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

    can u write the same for test cases

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

    Mam please work in sublime text 3 ...

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

    mam can u write the code for it to take from input values..please mam

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

      for odd inputs:
      n = int(input("rows:"))
      k = n//2
      for i in range(n):
      for j in range(n):
      if i+j==k or i-j==k or j-i==k or i+j==n+(k-1):
      print("*",end="")
      else:
      print(" ",end="")
      print()
      :)

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

      @King Shah 673
      for user input
      n=int(input())
      for i in range(n*2):
      for j in range(n*2-1):#col in this 0 to 6
      m=((n*2-1)//2)
      k=m*3
      if (i+j==m) or (j-i==m) or (i-j==m and j(n-1)) :
      print("*",end="")
      else:
      print(" ",end="")
      print()

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

    what if for general coding i.e.., for input=n

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

    when will do addition opertion and subrtarraction operatoon

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

      Just write down pattern then find column and row value of star, then you will understand what operation you need to do 😊

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

    How to write a program to print ' N' rows and columns

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

    I think program should be written for generalised value.....

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

    for n number the code will be
    def fun(n):
    for i in range(0,n):
    for j in range(0,n):
    if i+j==n//2 or i-j==n//2 or j-i==n//2 or i+j==n+1:
    print("*",end="")
    else:
    print(end=" ")
    print()
    fun(5)

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

    Hi madam I had a doubt range is nothing but how many iterations loop is going to run right how we are supposed to add or compare those iterations can anyone explain

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

    Please can you genralise this program by taking input from the user

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

    If I use range(number), how code?

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

      #printing rambus shaped stars
      num=int(input("enter the number of rows:"))
      for row in range(1,num+1):
      for col in range(1,num+1):
      if row+col==2 and row-col==2:
      print("*",end=" ")
      print()

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

    Why it is not working
    For row in range (5):
    For col in range(5):
    If row+col==2 or row+col==6 or row+col==4:
    Print ("*" , end = " ")
    Else :
    Print( end = " ")
    Print ()

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

      Check if Conditions again 😊

  • @madhuswathi9548
    @madhuswathi9548 9 หลายเดือนก่อน

    I want this code for n number of rows

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

    Very nice

  • @MDIMRAN-ze3rj
    @MDIMRAN-ze3rj 3 ปีที่แล้ว

    Mam Please Used used input value (n)
    I have tried many times but in vain

  • @anilkumarpaidi31
    @anilkumarpaidi31 4 หลายเดือนก่อน

    Thank u madam😊

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

    Good. I full understand

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

    Please make video of half diamond shape and half hollow diamond shape

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

      i already uploaded videos on half diamond or we can call it as pyramid shape
      th-cam.com/video/pg7i7FPUJds/w-d-xo.html
      th-cam.com/video/k_B-5Aad7EU/w-d-xo.html
      For hollow you can try by yourself .
      if you need any help you can ask me:)

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

    not only this.. every pattern series problem output shows like in that way.. plz solve my problem.. python 3.8.3 shell

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

      in else part write print(" ",end=" ")
      hope the problem will be solved in EVERY PROBLEM :)

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

      @@ritvisachdeva8945 Thank You

  • @praveenkumar-hn4en
    @praveenkumar-hn4en 2 ปีที่แล้ว

    nice if you explain with user given input

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

    It does not work for 10x10 though. I applied the pattern of your formula using the 10x10 but I cant seem to make a proper diamond. May I ask how would you do it? Or does this only work with odd numbers?

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

      Hi
      we can't write proper diamond for even row and column
      we want single star in first row, but where to print that, in which column ?
      Because of the even number we can't find out the middle number.
      If you give me the output i will try to write the code:)

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

      Amuls Academy actually I have the problem wrong. What I mean by 10x10 is the output should be:
      **********
      **********
      **********
      **********
      **********
      **********
      **********
      **********
      **********
      **********
      I'm planning to make a diamond cut shape inside. So basically the inner diamond has no asterisks while the outer diamond has.
      Its like a cookie cutter, only the shape it makes is diamond and it goes by a 10x10 matrix

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

      Yes got it:)
      Replied on fb:)

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

    mam this is amazing but not getting how to print using user input

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

    The only thing i don't understand is : How do i know when to subtract or to add row and col ?

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

      We need common result when we perform some operation on row and column numbers, so do trial and error. write down the pattern add the row and column and see whether you will get common result form all the row and column combination if not do another operation .

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

      @@AmulsAcademy Thank you ... i get it
      for row in range(7):
      for col in range(7):
      if row+col==3:
      print("*",end="")
      elif col-row==3:
      print("*",end="")
      elif row-col==3:
      print("*",end="")
      elif row+col==9:
      print("*",end="")
      else:
      print(end=" ")
      print()
      i was curious so i used elif instead of or operator ... it has the same output :D - Thank You

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

    In Python 3 it's output is
    *********
    Tell me

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

      You missed print() after each row :)

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

    Why are you hard coding? Can it not be solved using generic method?

  • @ronaldjoseph7614
    @ronaldjoseph7614 6 ปีที่แล้ว +2

    Can u make it dynamic

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

      Try this:)
      n=int(input("enter the odd number:"))
      num = (n-1)/2
      for row in range(n):
      for col in range(n):
      if row+col==num or col-row==num or row-col==num or row+col==n+num-1:
      print("*",end="")
      else:
      print(end=" ")
      print()

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

      Amuls Academy but it will not work for seven

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

      For example when r+c==6 u use n+1

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

      It will work
      n+1 won't work for 7 .
      Execute and check:)

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

      Amuls Academy
      n= int(input("# rows:"))
      a=((n-1)/2)
      if not (n%2==1):
      print ("please enter an odd value: ")
      continue
      for row in range(n):
      for col in range(n):
      if (row+col==a) or (col-row==a) or (row-col==a) or (row+col==a*3):
      print ("*", end="")
      else:
      print (end=" ")
      print()

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

    Program for dynamic design of above given pattern.
    n=int(input("Enter rows: "))
    for row in range(0,n):
    for col in range(0,n):
    if (row+col==n//2)or (row-col==((n-1)/2)) or (col-row==((n-1)/2))or ((row+col==(n+(n-1)/2)-1)):
    print("*",end="")
    else:
    print(end=" ")
    print()
    Please try if it is an error then reply me

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

    I got the result like this in python 3.8.0:
    *
    **
    **
    **
    **
    **
    *

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

      Check the else part, you need to print space there.
      else:
      print(" ",end="")
      :)

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

      @@AmulsAcademy why we need to enter space there .....
      pls can u explain briefly in the comments..

  • @naveent3483
    @naveent3483 6 ปีที่แล้ว +2

    1A2A3
    A2A3
    2A3
    3
    Can you please tell me how to get this number pattern

  • @aliyhai5761
    @aliyhai5761 4 ปีที่แล้ว +3

    It is wrong code ,I have tried to be honest ,none worked .thanks anyway

    • @AmulsAcademy
      @AmulsAcademy  4 ปีที่แล้ว +2

      Give me the program i will make it work for you :)

    • @339sachindahatonde9
      @339sachindahatonde9 11 หลายเดือนก่อน

      It's right code .
      else:
      print (" ")
      don't forget space .

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

    Hi I am unable to do.. can you please draw the full diamond using alphabet a b c d e

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

    It can't working in my PC

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

      Download anaconda navigator and use jupyter NOTEbook

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

    generalize the code!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @virentanti16
    @virentanti16 4 ปีที่แล้ว +2

    code:
    for row in range(5):
    for col in range(5):
    if row+col==2 or col-row==2 or row-col==2 or row+col==6:
    print('*', end="")
    else:
    print(end=" ")
    print()
    #thank me later

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

    Three😂😂

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

    irrelevant

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

    It can't working in my PC