Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: return statement usage
Post: RE: return statement usage

Okay. Thank you :-)
SB_J General Coding Help 3 2,440 Jul-16-2019, 10:14 AM
    Thread: return statement usage
Post: return statement usage

Hello! 1) def square(x): return(x*x) print(square(4)) 2)def square(x): print(x*x) square(4)Why do I have to use a return statement(1) when I can get the output by calling the function direct...
SB_J General Coding Help 3 2,440 Jul-16-2019, 09:12 AM
    Thread: Logic of using floor division and modulus for a different variable at different time
Post: RE: Logic of using floor division and modulus for ...

Hi, I did understand why he has used 3600 and 60 in Code_1 as well as Code_2. I didn't understand when he didn't end the program after these steps, why did he extend it by dividing with 10 and conside...
SB_J General Coding Help 2 2,518 Nov-01-2018, 07:25 PM
    Thread: Logic of using floor division and modulus for a different variable at different time
Post: Logic of using floor division and modulus for a di...

Hi, In the below code(Code_1), please help me understand the logic of dividing minutes and seconds by 10. The second program(Code_2) also gives the same result. But the below program's logic, I'm una...
SB_J General Coding Help 2 2,518 Nov-01-2018, 07:00 PM
    Thread: Doubt with int and str
Post: Doubt with int and str

x = 4 print ('x =' , x) and x= 4 print ('x =', str(x)) give me the same output. Why do I have to convert int to str?
SB_J Homework 1 1,973 Sep-11-2018, 04:43 PM

User Panel Messages

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