Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: A problem with defining variables
Post: RE: A problem with defining variables

Thank's buran Can you show an example of how the code that convert the user input to int should look?
meru120 General Coding Help 5 3,418 Jan-30-2019, 12:14 PM
    Thread: A problem with defining variables
Post: A problem with defining variables

I'm trying to create a function that accepts two numbers and returns the product or the number zero if the result is negative. I wrote the following code def mul_2nums(): x = raw_input('write fir...
meru120 General Coding Help 5 3,418 Jan-30-2019, 11:46 AM
    Thread: Help in writing a basic function
Post: Help in writing a basic function

:I'm learning to write python code with a book, In the chapter about functions there is the following function example def seven_eleven(): x = 8 y = 30 return x, y def main(): var1...
meru120 General Coding Help 1 2,205 Apr-27-2018, 08:51 AM

User Panel Messages

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