Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: can you understand why this code prints None?
Post: RE: can you understand this code?

you are awesome,thanks. (Mar-13-2019, 02:53 AM)ichabod801 Wrote: If n % m == 0, then there is a return statement. But if n % m != 0, there is no return statement. In that case, the default return o...
arcbal General Coding Help 2 2,776 Mar-13-2019, 02:57 AM
    Thread: can you understand why this code prints None?
Post: can you understand why this code prints None?

# assuming n is always greater than m def fd(n,m): if n%m==0: print(m) return m else: print(n,m) fd(n,(m-1)) print(fd(6,5))the result is not what i expect,i exp...
arcbal General Coding Help 2 2,776 Mar-13-2019, 02:46 AM

User Panel Messages

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