Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pattern program in python

k=int(input('value of a: '))
for a in range(1,k):
    for b in range(1,k):
        if a==b:
            print('A',end=" ")
        else:
            print('B',end=" ")
        
    print()
________________________________________________________________________________
 
PREVIOUS NEXT
Tagged: #pattern #program #python
ADD COMMENT
Topic
Name
7+8 =