Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python Coding Issue!
Post: RE: Python Coding Issue!

the pass statement is a place holder statement that does nothing. it is useful if a statement requires a minimum of one line and you will add it it later. Or your a particular situation where you are...
jsira2003 General Coding Help 3 91,384 Sep-13-2019, 09:56 AM
    Thread: nested for loop dilemma
Post: RE: nested for loop dilemma

This is a problem you need to work out on paper. You need to visualize what the loops are doing to solve it. As you analyze the pyramid, think of what is happening on each loop pass. Your outer loo...
jsira2003 General Coding Help 9 4,170 Sep-13-2019, 03:56 AM
    Thread: negative indices in lists
Post: RE: negative indices in lists

the negative index in your case goes from -4 to -1. To encompass the whole list it would have to go to zero. However you cannot do this with negative indexes. The way to display this would be: spa...
jsira2003 Homework 6 3,428 Sep-13-2019, 02:19 AM
    Thread: Can read files in command prompt but not IDE
Post: RE: Can read files in command prompt but not IDE

Do you have the correct path to locate the file? If have an incorrect path and it will try to open the file in the default path. If your data file is not in this directory, the file cannot be opened...
jsira2003 General Coding Help 2 2,169 Sep-13-2019, 01:40 AM
    Thread: Working with Random Generated Numbers
Post: RE: Working with Random Generated Numbers

The reason you cannot separate the two digits is because it is of type int. It must be a str() to be able to extract one digit at a time. John
jsira2003 General Coding Help 4 3,220 Sep-09-2019, 10:38 PM

User Panel Messages

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