+ 1
How to overcome 'Return' outside function error?
When I type this code it shows the above mentioned error def=count_char(text, char) count=0 for c in char: Count+=1 return count Pls tell why this happens Thanks:)
1 Answer
+ 1
Thank you
When I type this code it shows the above mentioned error def=count_char(text, char) count=0 for c in char: Count+=1 return count Pls tell why this happens Thanks:)