On Monday, 7 September 2020 at 12:57:16 UTC+5:30, Python wrote:
> Shivlal Sharma wrote:
> > N = int(input("enter a positive integer:"))
> > coun = 1
> > while (N > 0):
> > coun = coun * N
> > N = N - 1
> > return coun
> > nice = ntime(N)
> > print(nice)
> >
> >
> > error: return outside of the function
> What did you expect return out of a function to even mean?
I mean that can't we use return keyword outside of the function?
--
https://mail.python.org/mailman/listinfo/python-list
- What this error want to say? Can't we use return without... Shivlal Sharma
- Re: What this error want to say? Can't we use retur... Shivlal Sharma
- Re: What this error want to say? Can't we use r... Chris Angelico
- Re: What this error want to say? Can't we use r... Shivlal Sharma
- Re: What this error want to say? Can't we u... Shivlal Sharma
- Re: What this error want to say? Can't we use r... Terry Reedy
- RE: What this error want to say? Can't we use retur... Schachner, Joseph
