#23 Python Tutorial for Beginners | Printing Patterns in Python

///#23 Python Tutorial for Beginners | Printing Patterns in Python

#23 Python Tutorial for Beginners | Printing Patterns in Python

FavoriteLoadingAdd to favorites

Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist :
Python Tutorial in Hindi :

In this video we will see:
– Printing patterns
– Using loop
– For loop

Editing Monitors :

Editing Laptop :
ASUS ROG Strix – (new version)

Camera :
lens :

Mics

Check out our website:

Follow Telusko on Twitter:

Follow on Facebook:
Telusko :
Navin Reddy :

Follow Navin Reddy on Instagram:

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20

source

By |2019-08-11T21:58:01+00:00August 11th, 2019|Python Video Tutorials|29 Comments

29 Comments

  1. AN Tech August 11, 2019 at 9:58 pm - Reply

    I can bet that no courses can be better then this even that is paid. I have purchased almost 5-6 courses form udemy but i couldn't find anyone better then this. A huge thanks to Mr Naveen Reddy Sir for providing this awesome courses and sir we really appreciate you for providing us such valuable resources.

  2. Akash Kumar August 11, 2019 at 9:58 pm - Reply

    Do python support ++ and — operators

  3. Harsh Pandey August 11, 2019 at 9:58 pm - Reply

    Sir end=" " Is not working on my ide i.e. (dcoder app for Android) sir please reply ASAP how will i prevent the new line

  4. Pradeep Punter August 11, 2019 at 9:58 pm - Reply

    for i in range(4):

    i<=4

    print("#" *4)

    iS THIS THE CORRECT WAY TO DO IT?

  5. Pradeep Punter August 11, 2019 at 9:58 pm - Reply

    for i in range(4):

    i<=4

    print("#" *4)

  6. Nitish Kumar August 11, 2019 at 9:58 pm - Reply

    1.Solution ->

    for i in range(4):

    for j in range(4-i):

    print(j+1, end="")

    print()

    2.Solution ->

    str1="ABCD"

    str2="PQR"

    for i in range(4):

    for j in range(i+1):

    print(str1[j], end="")

    for k in range(3-i):

    print(str2[k], end="")

    print()

  7. Shaik.Rabbani Basha August 11, 2019 at 9:58 pm - Reply

    I learned lot in this video thank u and please explain list concept with examples please sir

  8. Caffeine Coder August 11, 2019 at 9:58 pm - Reply

    All the three patterns can be done using one loop:
    1) for i in range(5):

    print('#'*5)
    2)for i in range(5):

    print('#'*i)
    3) for i in range(6,1,-1):

    print('#'*i)

  9. demon_ dynamo_ August 11, 2019 at 9:58 pm - Reply

    print heart shape by stars….

  10. Vikram Krishna August 11, 2019 at 9:58 pm - Reply

    x,y="ABCD","PQR"

    for i in range(1,5):

    print(x[0:i],end="'')

    print(y[i-1:])

  11. Srinivas Ramachandran August 11, 2019 at 9:58 pm - Reply

    1)
    for i in range(4):

    for j in range(4-i):

    print(j+i+1 ,end='')

    print()

    2)
    x='ABCD'

    y='PQR'

    for i in range(4):

    print(x[0:i+1]+y[i:])

    print()

  12. Ishpreet Singh August 11, 2019 at 9:58 pm - Reply

    Solution to problem 1
    for i in range(1,5):
    for j in range(5-i):
    print( j + i , end=โ€œ โ€œ)
    print()

  13. prateek August 11, 2019 at 9:58 pm - Reply

    for first problem————
    for i in range(4):

    print(4* '# ')
    second problem————
    for j in range (1,5):

    print((j) ' ')
    third problem——————
    i=4

    for j in range (1,5):

    print((i) ' ')

    i-=1

  14. Rohit Dalal August 11, 2019 at 9:58 pm - Reply

    Here you go :::::::
    for i in range(1, 5):

    for a in range(i, 5):

    print(a, end='')

    print('') # This is for new line after write 1234

  15. Dushyant Gangwal August 11, 2019 at 9:58 pm - Reply

    Solution for 2nd prolem
    print("Enter the no lines u wnt to print")

    x=int(input())

    for i in range(0, x):

    j = 0

    num=65 #ASCII Value for A

    sec=80 #ASCII value for P

    while j <= i:

    ch = chr(num) #Fetching A charecter from its ASCII Value

    print(ch, end="")

    j += 1

    num+=1

    j=i+1

    sec=sec+i

    while j<x:

    s=chr(sec)

    print(s,end="")

    sec+=1

    j+=1

    print()

  16. itsmeshove August 11, 2019 at 9:58 pm - Reply

    Maa kasam kaise padhata hai bhai purra samajh aagaya … Thank you very much sir

  17. SOUBATHA T August 11, 2019 at 9:58 pm - Reply

    solution for 1st problem:
    for i in range(0,5):
    for j in range(1+i,5):
    print(j,end="")
    print()

  18. gunateja pm August 11, 2019 at 9:58 pm - Reply

    solution 2:
    for i in range(0,3):

    for j in range(i+1):

    print(chr(65+i),end=" ")

    for k in range(3-i,0,-1):

    print(chr(80+i),end=" ")

    print()

  19. chunduru priyanka August 11, 2019 at 9:58 pm - Reply

    for i in range(4):
    print("####")

    This code can also print like this
    ####
    ####
    ####
    ####

  20. Syed Arfa August 11, 2019 at 9:58 pm - Reply

    for i in range(1,5):

    for j in range(5-i):

    print(i+j,end=' ')

    print()

  21. Riyaz mhd August 11, 2019 at 9:58 pm - Reply

    1.for i in range(4,0,-1):
    for j in range(5-i,5,1):
    print( j, end=" ")
    print()

  22. Krishna Jadhav August 11, 2019 at 9:58 pm - Reply

    Hi, why print() is giving new line??

  23. Sunil Fam August 11, 2019 at 9:58 pm - Reply

    For i in range (1,5)
    Pass
    For j in range (i, 5)
    Print(j, end=`ยด)
    Print()

  24. Sonia Chawla August 11, 2019 at 9:58 pm - Reply

    Please suggest some good book or ebook for detailed knowledge and programming practice for Python

  25. Ashutosh kumar August 11, 2019 at 9:58 pm - Reply

    Ques 1 :
    For i in range(1,5):
    For j in range(5-i):
    Print(i+j,end="")

    Print()

  26. SHARIQUE SHAKIL August 11, 2019 at 9:58 pm - Reply

    First Assignment :

    for i in range(4):
    for j in range(1,5-i):
    print(j+i,end=" ")
    print()

  27. vivek kumar sharma August 11, 2019 at 9:58 pm - Reply

    This is the answer of first question:-
    for i in range(1,5):
    for j in range(i,5):
    print(j ,end="")
    print("")

  28. Anshuman Vyas August 11, 2019 at 9:58 pm - Reply

    for i in range(4):
    print(4*'#')

  29. Soniya Chauhan August 11, 2019 at 9:58 pm - Reply

    for i in range(4):
    for j in range(4-i):
    print(i+j+1,end=" ")
    print(end="n")

Leave A Comment

*