Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: TensorFlow problem in Object Detection
Post: TensorFlow problem in Object Detection

Hi readers, I was working on Object Detection Application. The source code for which is available on GitHub. Solved a lot but now left with these issues. Please help me solving it out. Error:Tracebac...
yksingh1097 Data Science 1 2,819 Oct-03-2018, 03:45 PM
    Thread: Decorators
Post: RE: Decorators

(Aug-11-2018, 10:00 PM)Gribouillis Wrote: The only thing to understand is that @spam def eggs(): print('ham')is equivalent to def eggs(): print('ham') eggs = spam(eggs) Okay thanks Sir. I ge...
yksingh1097 General Coding Help 2 2,523 Aug-14-2018, 01:44 PM
    Thread: Decorators
Post: Decorators

I was going through a tutorial and encountered this code. Can anybody please make me understand the control flow of this code? Like which line is executed first and what is being passed as argument. I...
yksingh1097 General Coding Help 2 2,523 Aug-11-2018, 07:24 PM
    Thread: Inheritance
Post: RE: Inheritance

(Aug-11-2018, 12:47 PM)ichabod801 Wrote: The key point is that self is the instance. So you create the Animal class with an eat method. Animal.eat is unbound, because there is no instance. Since the...
yksingh1097 General Coding Help 7 3,932 Aug-11-2018, 06:48 PM
    Thread: Inheritance
Post: RE: Inheritance

I was just reading this thread to answer it and a question raised in my mind(learning python as well) that, we can call eat() like this Animal().eat()but why we can't call eat() like this Animal.eat(...
yksingh1097 General Coding Help 7 3,932 Aug-11-2018, 09:37 AM
    Thread: Calling a function whch is inside a function
Post: RE: Calling a function whch is inside a function

(Aug-11-2018, 05:37 AM)buran Wrote: protected is not precise. it imply that inner function still exists and is visible from outer/global scope, but not accessible (i.e. protected). the scope of inne...
yksingh1097 General Coding Help 4 3,503 Aug-11-2018, 09:08 AM
    Thread: Calling a function whch is inside a function
Post: RE: Calling a function whch is inside a function

(Aug-10-2018, 08:32 PM)Vysero Wrote: Good question but I am going to skirt around the answer because I believe inner functions are used in python because (as you found out) they are protected. At le...
yksingh1097 General Coding Help 4 3,503 Aug-11-2018, 04:58 AM
    Thread: Calling a function whch is inside a function
Post: Calling a function whch is inside a function

Here is the code for example: def funcOuter(): print("funcOuter() called") def funcInner(): print("funcInner() called") print("bye bye!!!")and i want to call funcInner(). If i ca...
yksingh1097 General Coding Help 4 3,503 Aug-10-2018, 07:47 PM
    Thread: Looking for my 3 simple questions to get answered
Post: Looking for my 3 simple questions to get answered

Hi readers, I was interested in learning AI, so I learned Python. I am in final year of graduation in Computer Science. And now I want to get internship in AI-Python. So my simple 3 questions are:- ...
yksingh1097 Data Science 1 2,005 Aug-08-2018, 09:48 AM
    Thread: Understanding Scoping in Python
Post: RE: Understanding Scoping in Python

(Aug-06-2018, 05:16 PM)Windspar Wrote: Because global spam only brings in global scope variables. Not non local variables. # This is global scope area spam = "global scope" def print_spam(): p...
yksingh1097 General Coding Help 5 3,846 Aug-06-2018, 06:35 PM
    Thread: Understanding Scoping in Python
Post: RE: Understanding Scoping in Python

(Aug-06-2018, 02:24 PM)Windspar Wrote: Because scope_test already has local variable name spam. scope looks up local spam first. If not exist then looks for global spam. spam = "global" def global...
yksingh1097 General Coding Help 5 3,846 Aug-06-2018, 05:05 PM
    Thread: Understanding Scoping in Python
Post: Understanding Scoping in Python

I was reading Python docs and encountered this example under "Scope and Namespaces". def scope_test(): def do_local(): spam = "local spam" def do_nonlocal(): nonlocal spam ...
yksingh1097 General Coding Help 5 3,846 Aug-06-2018, 10:26 AM
    Thread: Understanding slice copying in for loop
Post: RE: Understanding slice copying in for loop

(Jul-02-2018, 09:50 AM)buran Wrote: (Jul-02-2018, 09:36 AM)yksingh1097 Wrote: Does that mean there are two lists with same name words?No, the copy of the list is not assigned to any variable name....
yksingh1097 General Coding Help 5 4,058 Jul-02-2018, 01:03 PM
    Thread: Understanding slice copying in for loop
Post: RE: Understanding slice copying in for loop

(Jul-02-2018, 07:31 AM)wavic Wrote: Hello and welcome! It's called slicing. You can slice a sequence in python like this: words[1:4]. That returns all elements from index 1 to index 4. The index 4 ...
yksingh1097 General Coding Help 5 4,058 Jul-02-2018, 09:36 AM
    Thread: Understanding slice copying in for loop
Post: Understanding slice copying in for loop

I was studying for loops ,there it was said that "If you need to modify the sequence you are iterating over while inside the loop (for example to duplicate selected items), it is recommended that you...
yksingh1097 General Coding Help 5 4,058 Jul-02-2018, 07:15 AM

User Panel Messages

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