Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Self taught , (creating a quiz) syntax error on my array
Post: RE: Self taught , (creating a quiz) syntax error o...
When I run your code with the fixes I have mentioned, it works. |
|
ichabod801 |
Homework |
9 |
4,292 |
Jan-10-2020, 02:30 AM |
|
|
Thread: Self taught , (creating a quiz) syntax error on my array
Post: RE: Self taught , (creating a quiz) syntax error o...
You're also missing a colon at the end of line 19. It would really help if you would post the full text of the error messages you are getting. |
|
ichabod801 |
Homework |
9 |
4,292 |
Jan-10-2020, 01:48 AM |
|
|
Thread: Self taught , (creating a quiz) syntax error on my array
Post: RE: Self taught , (creating a quiz) syntax error o...
On line 23 questions is not defined. Is line 9 supposed to be questions instead of question? |
|
ichabod801 |
Homework |
9 |
4,292 |
Jan-09-2020, 11:00 PM |
|
|
Thread: Help with Global/Coerced Variable (Understanding Scope)
Post: RE: Help with Global/Coerced Variable (Understandi...
Show your modified code. The line I asked you to add should not be indented. |
|
ichabod801 |
General Coding Help |
6 |
3,533 |
Jan-09-2020, 03:34 AM |
|
|
Thread: Handling a .txt text
Post: RE: Handling a .txt text
What do you get if you take out lines 8 and 9? Are you sure 'Net' is in the line with that capitalization? |
|
ichabod801 |
General Coding Help |
7 |
2,913 |
Jan-09-2020, 03:18 AM |
|
|
Thread: Help with Global/Coerced Variable (Understanding Scope)
Post: RE: Help with Global/Coerced Variable (Understandi...
You need to call the function. Add this line to the end:
my_vars() |
|
ichabod801 |
General Coding Help |
6 |
3,533 |
Jan-09-2020, 03:16 AM |
|
|
Thread: Print Binary Tree - Python
Post: RE: Print Binary Tree - Python
First you need the depth of the tree, which you can calculate from the list output. That will tell you how many items are in the last row of the 2d output. Then convert everything in the list output t... |
|
ichabod801 |
Homework |
1 |
2,669 |
Jan-08-2020, 09:54 PM |
|
|
Thread: TypeError: setText(self, str): too many arguments
Post: RE: TypeError: setText(self, str): too many argume...
You need to move , '.15g' inside the call to the format function. As it is now, it's a parameter to setText, when I think you want it as a parameter to format. That is, format(math.pi, '.15g') and the... |
|
ichabod801 |
General Coding Help |
3 |
7,799 |
Jan-08-2020, 09:17 PM |
|
|
Thread: Homework
Post: RE: Homework
Get rid of the calls to the lower method on line 6, especially since current_users.lower() should cause an error. That's because current_users is a list, you can only use the lower method with strings... |
|
ichabod801 |
Homework |
5 |
2,294 |
Jan-08-2020, 09:13 PM |
|
|
Thread: simple if elif conditions in Python
Post: RE: simple if elif conditions in Python
if Universtiy in ("name1","name2","name3"):
Universtiy_Group = 'Go8 University'
elif University in ("name4","name5"):
Universtiy_Group = 'Eligible Go8 University'
else:
Universtiy_Group = ... |
|
ichabod801 |
General Coding Help |
2 |
2,082 |
Jan-08-2020, 02:35 PM |
|
|
Thread: Fun Poll: What should we call a group of data scientists?
Post: RE: Fun Poll: What should we call a group of data ...
I think they should be called statisticians, I really don't think much of the term 'data scientist'. But that's just me practicing on becoming a grumpy old man. |
|
ichabod801 |
Bar |
3 |
2,794 |
Jan-07-2020, 04:40 PM |
|
|
Thread: Python function executes twice when region loop is present
Post: RE: Python function executes twice when region loo...
The instance count is reported in report_instance_stats. This is called on line 139, at the end of the 'for instance' loop on line 38. But that's within the 'for reservation' loop on line 37, and you ... |
|
ichabod801 |
General Coding Help |
2 |
2,644 |
Jan-06-2020, 11:06 PM |
|
|
Thread: Attribute Error for Rename / Replace
Post: RE: Attribute Error for Rename / Replace
Well, file_list is a list, while replace is a method of strings. You can't use a string method directly on a list of strings, you have to loop through the list and apply it to each of the strings indi... |
|
ichabod801 |
General Coding Help |
6 |
7,917 |
Jan-06-2020, 05:18 PM |
|
|
Thread: 3Dbuzz is shutting down, and it's resources are now free
Post: RE: 3Dbuzz is shutting down, and it's resources ar...
snag snag snag ...
Edit: Cool. Now I have a dozen or so video archives I will never watch to go with my couple dozen Pact e-books I will never read. : ) |
|
ichabod801 |
Bar |
3 |
2,833 |
Jan-06-2020, 03:39 AM |
|
|
Thread: Define a range, return all numbers of range that are NOT in csv data
Post: RE: Define a range, return all numbers of range th...
Oh, sorry. You need to actually call the check_range function to start the whole thing. And 'number' on line 21 should be 'n' (or 'n' on line 20 should be 'number').
As long as _num_ranges is not emp... |
|
ichabod801 |
General Coding Help |
18 |
7,099 |
Jan-06-2020, 03:09 AM |
|
|
Thread: Define a range, return all numbers of range that are NOT in csv data
Post: RE: Define a range, return all numbers of range th...
Analysis looks correct. A nested dict (just like the one you used in post #11) should work. Note that my code assumed a list of number ranges, and I also messed up the call to in_range. It should be m... |
|
ichabod801 |
General Coding Help |
18 |
7,099 |
Jan-06-2020, 02:32 AM |
|
|
Thread: Is There a Better Way to Truncate Variables?
Post: RE: Is There a Better Way to Truncate Variables?
Use integer division (//): equity = portfolio_size // 6000 * 100. |
|
ichabod801 |
General Coding Help |
2 |
1,892 |
Jan-05-2020, 10:54 PM |
|
|
Thread: Random module, coin flipping
Post: RE: Random module, coin flipping
This is not really a problem with your code. Your code works, it just doesn't seem to satisfy the requirements of the exercise. Without seeing the exercise as written by the professor, I can't really ... |
|
ichabod801 |
Homework |
3 |
4,880 |
Jan-05-2020, 07:55 PM |
|
|
Thread: How to make an 'uncrackable' executable?
Post: RE: How to make an 'uncrackable' executable?
Why are you concerned about it getting cracked if you are giving it away for free? It's not like they're going to be taking any revenue from you. Just put a non-commercial use license on it. |
|
ichabod801 |
General Coding Help |
9 |
6,811 |
Jan-05-2020, 05:48 PM |
|
|
Thread: Can i prevent the random generator to generate already used numbers?
Post: RE: Can i prevent the random generator to generate...
|
ichabod801 |
General Coding Help |
3 |
2,895 |
Jan-05-2020, 04:11 PM |