Guys i want to write/print a pattern | SoloLearn: Learn to code for FREE!

+1

Guys i want to write/print a pattern

A pattern consisting of all possible combinations of the letters A B C from top to bottom, in which repetition is allowed For example- ABCABC ABCABC ABCBCA I just know that it will consist of 27 columns. But i cannot get any further than this. Any help will be much appreciated

6/4/2020 5:51:56 PM

stephen haokip

3 Answers

New Answer

+3

for patterns you might use for loops or while loops. I remember making a pattern using for loops: https://code.sololearn.com/c3YBXur3x2yz/?ref=app

+1

I just checked in python just to see that you are actually giving example of Permutations and talking about combinations ,lol ,also learn about how combinations and permutations are performed since you seem to be confused about two

-1

https://code.sololearn.com/c8OeV7di4VTn/?ref=app