Problem in code coach | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Problem in code coach

https://sololearn.com/coach/74/?ref=app I ran the same code in my laptop compiler it works right. But it shows false results in code coach. I tried this code with python. Mods plz check a=input() b="abcdefghijklmnopqrstuvwxyz" c=b.upper() t=0 for i in a: t=+1 if i == "=": break elif i in c: t-=1 break print(a[t::])

11th Jan 2023, 9:59 AM
chess doctor
chess doctor - avatar
4 ответов
+ 7
Don't post a question twice
11th Jan 2023, 10:04 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 3
chess doctor As shared link and code your output is different than the actual outputs.
11th Jan 2023, 10:09 AM
A͢J
A͢J - avatar
+ 3
If you want to increment the variable the syntax is like t+=1 which is equal to t = t +1
11th Jan 2023, 10:09 AM
Edgar Sabido
Edgar Sabido - avatar
0
Thanks edgar, I missed that one, problem solved👍
11th Jan 2023, 10:32 AM
chess doctor
chess doctor - avatar