How to Print this pattern (easy one but i m noob) | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How to Print this pattern (easy one but i m noob)

Use only for loop( for Loop only using range()): Pattern: 12345 2345 345 45 5

8th Mar 2018, 3:06 PM
Kaival
Kaival - avatar
18 Antworten
0
Finally after working hard i Got what i needed i Made this pattern ... see guys If u cant Abled to answer my question...i prepared it by myself...PEACE FOR LIFE🙏...TY https://code.sololearn.com/c3OweGH6IgFA/?ref=app
9th Mar 2018, 8:09 AM
Kaival
Kaival - avatar
+ 6
see mate solo learn is platform for Every coders to learn and grow ... and it provides solution to this also so why i cant ask for what I needed instead of what i got?...and yeah Report Me my friend i would appreciate it..
8th Mar 2018, 3:22 PM
Kaival
Kaival - avatar
+ 3
why not make lessons or assignments about this?well nice,"Why" you shouldn't just ask people to delete posts he's a newbie,hes presenting a solution and I don't think it's against anything,well I'm just saying
8th Mar 2018, 3:27 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 3
Pls let just stop Here ... we surely Don't wanna argue...just relax chill and Can anyone give me my solution?.......PEACE 🙏
8th Mar 2018, 3:37 PM
Kaival
Kaival - avatar
+ 2
sorry was afk. i = 0 max = 6 min = 1 while i < 5: for n in range(min,max): print(n, end="") i += 1 print('\n') min += 1
8th Mar 2018, 4:17 PM
emmey
emmey - avatar
8th Mar 2018, 5:26 PM
Sylar
+ 1
Emmey not like this my friend without Any list or sets...only with fors... like this n=5 for i in range(logic): for j in range(logic): print pattern; newline: thats it
8th Mar 2018, 3:16 PM
Kaival
Kaival - avatar
+ 1
umm Bro I would Appreciate it But The thing is I want Pattern in only for loop Nothing else no matter how many for loop u use i just need my pattern in this way thats it🙏😅
8th Mar 2018, 3:40 PM
Kaival
Kaival - avatar
+ 1
The confusion here was that I deleted my answer because a list cant be used so, @Why thought @Kaival was answering his own question.
8th Mar 2018, 3:42 PM
emmey
emmey - avatar
+ 1
can any1 answer my question in this sololearn universe?nobody is there ?...
8th Mar 2018, 3:57 PM
Kaival
Kaival - avatar
+ 1
nope just change while to for i in range(5) and no need to increment i then. Its not hopeless. Did you want me to actually give you your code? You won't learn anything that way. The answer I gave you should be adequate for you to figure it out from there.
8th Mar 2018, 4:34 PM
emmey
emmey - avatar
+ 1
hey i made an another pattern how is it>?? https://code.sololearn.com/cO2rQY8b41C1/#py
10th Mar 2018, 4:12 AM
Kaival
Kaival - avatar
0
kaival can I use an array?
8th Mar 2018, 3:39 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
now i m loosing my hope .... Ty EMMEY for such efforts...but i don't think anyone could Help me in this i m repeating last time I NEED THIS PATTERN IN ONLY IN FOR LOOPS NOTHING ELSE NO LIST NO WHILE....ty
8th Mar 2018, 4:24 PM
Kaival
Kaival - avatar
0
ok ty for efforts but u also know that this is not impossible thing...TY 🙏👍
8th Mar 2018, 4:29 PM
Kaival
Kaival - avatar
0
@emmey nice Thinking but Bro i tried everything in this and now i M done I made 20 patterns but cant do this type of pattern With spacing like this so It would be nice for me to get a code from u....
8th Mar 2018, 4:37 PM
Kaival
Kaival - avatar
0
@emmey bro pls Don't Test my patience....its A wrong which prints Different pattern ...... Dont Reply Any code pls HAVE FUN TY
8th Mar 2018, 5:26 PM
Kaival
Kaival - avatar
0
finally Thanks a lot spamfood
8th Mar 2018, 5:36 PM
Kaival
Kaival - avatar