Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Trouble making an argument optional
Post: RE: Trouble making an argument optional

(Aug-31-2018, 01:29 AM)Mekire Wrote: I think you accidentally saved a second version of your file or something. Works fine for me. Output:.. --------------------------------------------------------...
linuxnoob General Coding Help 2 2,919 Aug-31-2018, 01:52 AM
    Thread: Trouble making an argument optional
Post: Trouble making an argument optional

So I'm using the book 'Python Crash Course' and working on the chapter dealing with testing your code. My function 'get_formatted_name' is supposed to accept 3 arguments. However 'middle' is supposed ...
linuxnoob General Coding Help 2 2,919 Aug-31-2018, 12:50 AM
    Thread: A little unexpected output from a while loop
Post: RE: A little unexpected output from a while loop

(Jul-16-2018, 01:56 AM)Zombie_Programming Wrote: First off, when you initialize prompt, you set it to whatever the user enters. Then you add to the user's input prompt += "]nEnter 'quit' to end the ...
linuxnoob General Coding Help 3 3,128 Jul-16-2018, 11:49 PM
    Thread: A little unexpected output from a while loop
Post: A little unexpected output from a while loop

I'm not sure why this program continues to print 'quit' when the user tells the program to quit. That last if statement is inside the while loop, it's supposed to check if the input is not equal to 'q...
linuxnoob General Coding Help 3 3,128 Jul-16-2018, 01:28 AM
    Thread: User input question
Post: RE: User input question

(Jul-12-2018, 04:03 AM)buran Wrote: No, it's system Python and is required. Read Doing it right Mac link from snippsat's post #7 I installed Python 3 before seeing this post unfortunately. Hopefully...
linuxnoob General Coding Help 9 4,982 Jul-12-2018, 01:56 PM
    Thread: User input question
Post: RE: User input question

(Jul-11-2018, 05:27 AM)buran Wrote: You have 2 python installations. On Mac it comes with python2 pre-installed. With python you invoke python2, with python3, well you invoke python3 Well now I feel...
linuxnoob General Coding Help 9 4,982 Jul-12-2018, 12:21 AM
    Thread: User input question
Post: RE: User input question

Mystery solved...When trying to run the program from the command line in Mac I was entering: python <file name> when I should have been entering python3 <file name>. Changing that command ...
linuxnoob General Coding Help 9 4,982 Jul-11-2018, 03:43 AM
    Thread: User input question
Post: RE: User input question

(Jul-10-2018, 03:57 AM)buran Wrote: Please, read https://python-forum.io/Thread-Basic-Pyt...-raw-input By the way, it's bit confusing that you claim it works in IDLE. Do you have more than one pyth...
linuxnoob General Coding Help 9 4,982 Jul-10-2018, 01:39 PM
    Thread: User input question
Post: User input question

Bare with me, coding is completely out of my wheelhouse! I'm working through a book called "Python Crash Course". I'm trying to work with a really simple program that should accept user input. It isn'...
linuxnoob General Coding Help 9 4,982 Jul-10-2018, 03:26 AM

User Panel Messages

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