Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Cannot find reference
Post: RE: Cannot find reference

'''module''' name = "suman" death = "not yet" def add(x, y): print("The sum of two numbers is",x + y) def product(x, y): return x * yThis file is my main file '''test.py''' '''member aliasing...
spalisetty06 General Coding Help 9 4,564 Aug-28-2020, 01:55 PM
    Thread: Cannot find reference
Post: RE: Cannot find reference

Various possibilities of import: import module1 import module1, module2, module3 import module1 as m1 import module1 as m1, module2 as m2, module3 as m3 from module1 import member1 from module1 import...
spalisetty06 General Coding Help 9 4,564 Aug-28-2020, 01:44 PM
    Thread: Cannot find reference
Post: RE: Cannot find reference

The module name is module.py itself. name and and everything are members of module.py
spalisetty06 General Coding Help 9 4,564 Aug-28-2020, 01:34 PM
    Thread: Cannot find reference
Post: RE: Cannot find reference

It is in the same location. I am getting output as well. But I see red underscropes, when hovered over, it says, cannot find reference. I googled it, it says a bug in Pycharm. Thank you so much for tr...
spalisetty06 General Coding Help 9 4,564 Aug-28-2020, 01:26 PM
    Thread: Cannot find reference
Post: Cannot find reference

Hello, I have imported the module named 'module' and I am trying to use the members in another file, I have installed packages as well, why do I still get 'Cannot find reference'? I will get correct o...
spalisetty06 General Coding Help 9 4,564 Aug-28-2020, 01:10 PM
    Thread: Edit with Idle Missing
Post: RE: Edit with Idle Missing

Why not uninstall, reinstall the software, hopefully it works
spalisetty06 General Coding Help 3 5,097 Aug-25-2020, 03:23 PM
    Thread: factorial using recursive function
Post: RE: factorial using recursive function

Thank You, I am not sure, who developed this visualizer, he should be awarded a million dollar
spalisetty06 General Coding Help 12 4,074 Aug-25-2020, 03:16 PM
    Thread: factorial using recursive function
Post: RE: factorial using recursive function

(Aug-25-2020, 02:50 PM)buran Wrote: (Aug-25-2020, 02:45 PM)spalisetty06 Wrote: Thank You Buran for the elongated reply. Thanks again, but this code is working perfectly. **wall** **wall** **wall...
spalisetty06 General Coding Help 12 4,074 Aug-25-2020, 03:01 PM
    Thread: factorial using recursive function
Post: RE: factorial using recursive function

(Aug-25-2020, 02:29 PM)spalisetty06 Wrote: Hi Buran, I updated the post, it is working fine, but I have a new question, kindly look at it. Thank You Buran for the elongated reply. Thanks again, but ...
spalisetty06 General Coding Help 12 4,074 Aug-25-2020, 02:45 PM
    Thread: factorial using recursive function
Post: RE: factorial using recursive function

This might be helpful as it ha line numbers '''Recursive Function''' def factorial(n): #line 1 if n == 0: ...
spalisetty06 General Coding Help 12 4,074 Aug-25-2020, 02:41 PM
    Thread: factorial using recursive function
Post: RE: factorial using recursive function

Hi Buran, I updated the post, it is working fine, but I have a new question, kindly look at it.
spalisetty06 General Coding Help 12 4,074 Aug-25-2020, 02:29 PM
    Thread: factorial using recursive function
Post: factorial using recursive function

Hello, I am practicing on factorial using Recursive function. I am facing an issue here. Kindly correct me. '''Recursive Function''' def factorial(n): if n == 0: result = 1 else: ...
spalisetty06 General Coding Help 12 4,074 Aug-25-2020, 02:10 PM
    Thread: minor mistake in code for factorial
Post: RE: minor mistake in code for factorial

(Aug-22-2020, 04:51 PM)ndc85430 Wrote: Remember that when a return statement is encountered, the function immediately returns. So, only one iteration of your while loop is performed, because the fun...
spalisetty06 General Coding Help 2 1,879 Aug-22-2020, 05:00 PM
    Thread: minor mistake in code for factorial
Post: minor mistake in code for factorial

Hello, I believe, I have written it correctly, but I am missing something. '''write a program to get the factorial of a given number''' def fact(number): result = 1 while number > 1: ...
spalisetty06 General Coding Help 2 1,879 Aug-22-2020, 04:48 PM
    Thread: functions and dictionary
Post: functions and dictionary

Hello, I am using functions, and I am passing the argument as dictionary, is there a way to get the value of the dictionary? I am able to get the keys though. I am interested to get the values from th...
spalisetty06 General Coding Help 3 1,844 Aug-22-2020, 03:49 PM
    Thread: confusion with hashable
Post: RE: confusion with hashable

Hi Sir, thank you for helping me out, am I very happy now, but for this. '''tuple inside set''' s = {(1, 2), (1, 2)} print(s[0][1])Output:TypeError 'set' object is not subscriptableI am good here, be...
spalisetty06 General Coding Help 5 2,631 Aug-21-2020, 01:11 PM
    Thread: confusion with hashable
Post: RE: confusion with hashable

Thank You so much
spalisetty06 General Coding Help 5 2,631 Aug-20-2020, 03:40 PM
    Thread: confusion with hashable
Post: confusion with hashable

Hello, I have the following code, kindly help what is going on in a simple 1 or 2 lines. set is not hashable, I accept it. dict is not hashable, list is also not hashable, but, why is that we don't ge...
spalisetty06 General Coding Help 5 2,631 Aug-20-2020, 02:41 PM
    Thread: hashable confusion
Post: RE: hashable confusion

okay, so, it's hashable only for forzen set and not for set. Thank You.
spalisetty06 General Coding Help 3 1,930 Aug-16-2020, 03:54 PM
    Thread: hashable confusion
Post: hashable confusion

Hello, I have read that all data types which are immutable are hashable. But, [b]set[b] is mutable. How is that it is stored based on hash value?
spalisetty06 General Coding Help 3 1,930 Aug-16-2020, 11:59 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020