+ 2
Pattern programming in python:-
....A BC DEF (Dot is not included)
5 Answers
+ 1
The simplest way would be:
letters=["A", "BC", "DEF"]
l=""
for i in letters:
print(i.rjust(len(letters)))
# output:
# ..A
# .BC
# DEF
+ 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.
+ 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.
0
I just want to execute a pattern program which print this.
A
BC
DEF
0
just that? not to continue to GHIK and so on?