Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: The "traceback" is here
Post: The "traceback" is here

I have to extract all the numbers in the file and compute the sum of the numbers. import re sum=0 name=input('Enter name of file:') file=open(name) for lines in file: numbers=re.findall('[0-9]+'...
AmanTripathi Homework 1 3,794 Feb-14-2018, 04:17 PM
    Thread: Output explanation
Post: RE: Output explanation

Thank You :)
AmanTripathi Homework 2 2,800 Feb-14-2018, 03:03 PM
    Thread: Output explanation
Post: Output explanation

I am unable to understand the output of this program. Can someone explain it to me? stuff=dict() print(stuff.get('candy',-1))
AmanTripathi Homework 2 2,800 Feb-07-2018, 07:39 PM
    Thread: Function
Post: RE: Function

(Feb-01-2018, 07:11 PM)buran Wrote: every function returns something. if it does not return anything explicitly, it returns None. That is the case with your function h - it does not return anything ...
AmanTripathi General Coding Help 2 2,735 Feb-02-2018, 04:30 AM
    Thread: Function
Post: Function

Code: def h(): print('hey') print(h(),'hello')Output: Output:hey None helloPlease someone explain me the output. I am a beginner and have just started learning python.
AmanTripathi General Coding Help 2 2,735 Feb-01-2018, 07:05 PM

User Panel Messages

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