Iterating Different Characters by line | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Iterating Different Characters by line

it looks like this x / \ x k x / | \ x k x k x / | \ x k x k x k x / | \ and so forth. please. until there are 21 x and k's in the last row. kindly help

26th Feb 2017, 7:05 AM
Shikamaru
Shikamaru - avatar
2 Réponses
+ 7
If you don't mind, I also made a script in Python for that :) https://code.sololearn.com/cvLJXU4IetsT/?ref=app
26th Feb 2017, 8:07 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
i have posted the solution in my profile. check the code section. the code is named as ctree. 👍
26th Feb 2017, 7:58 AM
Rishi Chawda
Rishi Chawda - avatar