Re: Python problem... Chetan is really Genius

15 views
Skip to first unread message

Balaji Shetty

unread,
Dec 16, 2019, 12:29:45 AM12/16/19
to django...@googlegroups.com, Chetan Ganji
Yes...

Definitely  I am also Ghetan Fan.

He has tremendous knowledge and Practical Experience of Django. 

Cheers for Chetan 

On Sunday, December 15, 2019, Gil Obradors <gil.ob...@gmail.com> wrote:
Chetan, you're a genius!

Missatge de Chetan Ganji <ganji....@gmail.com> del dia dg., 15 de des. 2019 a les 16:28:
# input: h123456ello
# output: o123456lleh

# input: th34isisast56ring3
# output: gn34irtsasi56siht3


order = {}
characters = ""
input_string = "h123456ello"
# input_string = "th34isisast56ring3"
counter = 0 
output_string = ""


for index, character in enumerate(input_string): 
    order[index] = character 

for item in range(0len(input_string)):
    if input_string[item].isalpha():
        characters += input_string[item]

# reversing the string
characters = characters[::-1]

for index, item in enumerate(range(0len(input_string))) :
    if input_string[item].isalpha():
        order[index] = characters[counter]
        counter += 1

for index in range(0len(input_string)):
    output_string += order[index]

print()
print(input_string)
print(output_string)
print()




Regards,
Chetan Ganji
+91-900-483-4183


On Sun, Dec 15, 2019 at 8:14 PM Soumen Khatua <soumenk...@gmail.com> wrote:
Hi Folks,
I'm stucking in this problem from 5 hours but still I'm not bale to logic to solve this problem, Please help me guys to solve this problem:

Example:-
input: h123456ello
output: o123456lleh

input: th34isisast56ring3
output: gn34irtsasi56siht3

Thank you in advance.

regards,
Soumen

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6Wa8LqGGnqbsiKvYrBw6WQkBaqjm9b8Re65PM3zJr1rdkA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjsLe0zo9_B70dNNq%2Bk_xwOTGt-cs%2BGeqagM-wZk8yYzLA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK-JoTStv3AUaAt7gOJjUhXtmqxXgaDqE3eC_fj5ak48Gb73Cg%40mail.gmail.com.


--
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

sagar ninave

unread,
Dec 16, 2019, 12:56:05 AM12/16/19
to django...@googlegroups.com, Balaji Shetty
i am too @Balaji Shetty . actually yesterday evening he helped me to solved some problem on linked in where i was stuck.
Reply all
Reply to author
Forward
0 new messages