Re: Python problem... Chetan is really Genius

2019-12-15 Thread sagar ninave
i am too @Balaji Shetty . actually yesterday evening he helped me to solved some problem on linked in where i was stuck. -- 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

Re: Python problem... Chetan is really Genius

2019-12-15 Thread Balaji Shetty
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 wrote: > Chetan, you're a genius! > > Missatge de Chetan Ganji del dia dg., 15 de des. > 2019 a les 16:28: > >> # input:

Re: Python problem

2019-12-15 Thread Soumen Khatua
Thanks a lot. On Sun, Dec 15, 2019 at 9:07 PM Gil Obradors wrote: > Chetan, you're a genius! > > Missatge de Chetan Ganji del dia dg., 15 de des. > 2019 a les 16:28: > >> # input: h123456ello >> # output: o123456lleh >> >> # input: th34isisast56ring3 >> # output: gn34irtsasi56siht3 >> >> >>

Re: Python problem

2019-12-15 Thread Gil Obradors
Chetan, you're a genius! Missatge de Chetan Ganji 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 =

Re: Python problem

2019-12-15 Thread Chetan Ganji
# 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] =

Python problem

2019-12-15 Thread Soumen Khatua
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 --

Re: [Python] Problem with arguments given

2015-03-14 Thread Babatunde Akinyanmi
On 14 Mar 2015 12:22, "John" wrote: > > > Dariusz, > > You've declared ask_number() as an instance method in class Hand. You are calling it as if it was a class method. See https://docs.python.org/3.1/tutorial/classes.html. > In other words, you have to first create

Re: [Python] Problem with arguments given

2015-03-14 Thread Anderson Resende
Change your method: def ask_number(self,question,low,high): response=None while response not in range(low,high): response=int(input(question)) change self to class: This way you can call the method directly from Hand. @classmethod def

Re: [Python] Problem with arguments given

2015-03-14 Thread John
Dariusz, You've declared ask_number() as an instance method in class Hand. You are calling it as if it was a class method. See https://docs.python.org/3.1/tutorial/classes.html. John On 14/03/15 08:30, Dariusz Mysior wrote: > Mam jeden problem nie wiem dlaczego mam bład > I have problem with

[Python] Problem with arguments given

2015-03-14 Thread Dariusz Mysior
Mam jeden problem nie wiem dlaczego mam bład I have problem with this bug :/ Traceback (most recent call last): > File "C:\Python31\makao.py", line 23, in > nr_players=Hand.ask_number("Ilu graczy ma wziąść udział w grze > (2-5):",low=2,high=5) > TypeError: ask_number() takes exactly 4

Re: Python problem

2013-03-23 Thread Mario Gudelj
Looks like you are trying to run terminal commands inside python shell. Don't go to pyhon shell to run them. Run them in DOS On 24 Mar, 2013 9:38 AM, "James" wrote: > haha sorry for got to post, > > windows 7 running on activepython 2.7.2.5 > (path is under python27) > >

Re: Python problem

2013-03-23 Thread James
haha sorry for got to post, windows 7 running on activepython 2.7.2.5 (path is under python27) Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\James>python ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.7.2

Re: Python problem

2013-03-22 Thread Bill Freeman
What O/S? What version of python? Can you get to python's prompt by just typing python at a command prompt? If so, is the version that it printed when it started the version that you expected? How about an actual cut and paste of the error that you are seeing? Bill On Thu, Mar 21, 2013 at

Python problem

2013-03-21 Thread James
Hey there, Did first Django app and everything worked find, however my computer crashed and after restoring it each time I try to execute any .py file in command prompt it says syntax error or that the module doesnt exist... Would you know any reasons for this? Python is still installed and