+ 2

Pattern programming in python:-

....A BC DEF (Dot is not included)

15th Feb 2020, 7:13 AM
Anusha saini
5 odpowiedzi
+ 1
The simplest way would be: letters=["A", "BC", "DEF"] l="" for i in letters: print(i.rjust(len(letters))) # output: # ..A # .BC # DEF
16th Feb 2020, 3:36 AM
Ishmam
Ishmam - avatar
+ 2
Give a Try by this .... Approach: Take input number of lines to print.. So (N=3,A='A'). M=N copy n value.. (A=65 as int) STEP1: Print N-1 spaces by a loop, then next N-1 to M, print letter A, A+=1 2: N=N-1; Repeat step 1 again until N>0. Edit: If struck between then share your code here.. Some one definitely help you.
15th Feb 2020, 7:41 AM
Jayakrishna 🇮🇳
+ 1
Is the pattern you're trying to achieve: a for loop, that every time it increments it writes another extra letter in a new line? If so, tell me how you think you can approach this and write exactly what you want it to do, sort of write the code in English words so i'll understand better.
15th Feb 2020, 7:18 AM
coddy
coddy - avatar
0
I just want to execute a pattern program which print this. A BC DEF
15th Feb 2020, 7:21 AM
Anusha saini
0
just that? not to continue to GHIK and so on?
15th Feb 2020, 7:22 AM
coddy
coddy - avatar