Python symbol square program

Develop a Python program to take three symbols (characters) from the user and print 15x15 square using these symbols in a repetitive way.

The first rows starts with 1st symbol, and continue with 2nd, and 3rd, and repeats this sequence.

The second rows starts with 2st symbol, and continue with 3rd, and 1st, and repeats this sequence.

The fourth rows starts with 1st symbol, and continue with 2nd, and 3rd, and repeats this sequence.

 

 

 

Example runs given below.

Enter 1st symbol:> *

Enter 2nd symbol:> -

Enter 3rd symbol:> /

* - / * - / * - / * - / * - / 

- / * - / * - / * - / * - / * 

/ * - / * - / * - / * - / * - 

* - / * - / * - / * - / * - / 

- / * - / * - / * - / * - / * 

/ * - / * - / * - / * - / * - 

* - / * - / * - / * - / * - / 

- / * - / * - / * - / * - / * 

/ * - / * - / * - / * - / * - 

* - / * - / * - / * - / * - / 

- / * - / * - / * - / * - / * 

/ * - / * - / * - / * - / * - 

* - / * - / * - / * - / * - / 

- / * - / * - / * - / * - / * 

/ * - / * - / * - / * - / * -

 

Enter 1st symbol:> 1

Enter 2nd symbol:> 2

Enter 3rd symbol:> 3

1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 

2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 

3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 

1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 

2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 

3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 

1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 

2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 

3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 

1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 

2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 

3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 

1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 

2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 

3 1 2 3 1 2 3 1 2 3 1 2 3 1 2

 

Enter 1st symbol:> ^

Enter 2nd symbol:> %

Enter 3rd symbol:> $

^ % $ ^ % $ ^ % $ ^ % $ ^ % $ 

% $ ^ % $ ^ % $ ^ % $ ^ % $ ^ 

$ ^ % $ ^ % $ ^ % $ ^ % $ ^ % 

^ % $ ^ % $ ^ % $ ^ % $ ^ % $ 

% $ ^ % $ ^ % $ ^ % $ ^ % $ ^ 

$ ^ % $ ^ % $ ^ % $ ^ % $ ^ % 

^ % $ ^ % $ ^ % $ ^ % $ ^ % $ 

% $ ^ % $ ^ % $ ^ % $ ^ % $ ^ 

$ ^ % $ ^ % $ ^ % $ ^ % $ ^ % 

^ % $ ^ % $ ^ % $ ^ % $ ^ % $ 

% $ ^ % $ ^ % $ ^ % $ ^ % $ ^ 

$ ^ % $ ^ % $ ^ % $ ^ % $ ^ % 

^ % $ ^ % $ ^ % $ ^ % $ ^ % $ 

% $ ^ % $ ^ % $ ^ % $ ^ % $ ^ 

$ ^ % $ ^ % $ ^ % $ ^ % $ ^ %

Need a custom answer at your budget?

This assignment has been answered 6 times in private sessions.

© 2024 Codify Tutor. All rights reserved