Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Delete strings from a list to create a new only number list
Post: RE: Delete strings from a list to create a new onl...
If this is a training course question, maybe you should just do what the question actually asks?
Enumerate through your list.
Check if current iteration is a string and if so, delete it.
Return (or ... |
|
Marbelous |
General Coding Help |
8 |
1,513 |
May-01-2023, 08:36 PM |
|
|
Thread: Sampling
Post: RE: Sampling
Those Teeny boards are pretty cool. I was going to chime in with the dual problems of sampling speed and non-determinism with the RPi but the Teeny looks like a good solution for both. Let us know h... |
|
Marbelous |
General Coding Help |
7 |
2,180 |
Mar-21-2022, 08:41 PM |
|
|
Thread: Help request for loop example
Post: RE: Help request for loop example
You are not off track. You need to select your code when you post and click the code button (blue/yellow snake) so that we can see your indentation.
Other than that your code should work except for ... |
|
Marbelous |
General Coding Help |
1 |
1,395 |
Nov-22-2021, 02:01 PM |
|
|
Thread: Need help understanding .pop
Post: RE: Need help understanding .pop
You have your generate_permutations() function called (on line 22) inside of itself. This is called recursion and it's very useful is some situations. I'm not really sure what this code is trying to... |
|
Marbelous |
Homework |
3 |
2,575 |
Jul-16-2021, 02:12 PM |
|
|
Thread: writing 2 up to 2**7 in phyton ( while )
Post: RE: writing 2 up to 2**7 in phyton ( while )
First off, it's PYTHON, as in Monty Python. The creator of python, Guido Van Rossum, was a big fan.
Secondly, all your questions will be answered if you just read the short tutorial that Guido wrote... |
|
Marbelous |
Homework |
3 |
2,288 |
Jul-07-2021, 02:16 PM |
|
|
Thread: How do I read in a Formula in Excel and convert it to do the computation in Python?
Post: RE: How do I read in a Formula in Excel and conver...
(Jul-07-2021, 11:20 AM)Larz60+ Wrote: you can use the DejaVu fonts which allow for display of equations and other math formatting.
It's a common font available on most linux distributions
Windows h... |
|
Marbelous |
General Coding Help |
2 |
2,639 |
Jul-07-2021, 02:06 PM |
|
|
Thread: pyinstaller --onefile
Post: RE: pyinstaller --onefile
(Jun-24-2021, 07:42 AM)mhzr Wrote: (Jun-24-2021, 07:18 AM)buran Wrote: this is not very descriptive. What error do you get when you run the exe from cmd? I would guess there is missing imports (i.... |
|
Marbelous |
General Coding Help |
6 |
3,264 |
Jun-24-2021, 05:56 PM |
|
|
Thread: URGENT: How to plot data from text file. Trying to recreate plots from MATLAB
Post: RE: URGENT: How to plot data from text file. Tryin...
If you're not getting points on your plot you must not have data in either XX or YY. Your text of the file makes it seem like it's one line. That might get you XX values but I bet YY is empty. Have... |
|
Marbelous |
Homework |
4 |
3,537 |
May-12-2021, 07:42 PM |
|
|
Thread: A 3D game engine
Post: RE: A 3D game engine
Why are you waiting for people to tell you what to use??? Just do a search for "3d game maker no code". There are dozens of options out there. Try a few and pick one. I've been studying game dev w... |
|
Marbelous |
Game Development |
5 |
5,967 |
May-03-2021, 05:05 PM |
|
|
Thread: simple function problem
Post: RE: simple function problem
Is this assignment actually worded like that? The text says you get a discount "on pear" when you buy MORE than 10 melons but the example code only buys 10 melons so it never triggers the discount. ... |
|
Marbelous |
Homework |
5 |
3,251 |
May-03-2021, 03:21 PM |
|
|
Thread: Run one Python Script from Another Script
Post: RE: Run one Python Script from Another Script
Yes, there are several ways. It depends on what your scripts are doing. You could always look into threading, sub-processes, multiprocessing, etc.
But, if you want an easy way to just run multiple ... |
|
Marbelous |
General Coding Help |
1 |
1,931 |
May-03-2021, 02:59 PM |
|
|
Thread: while loop typical code
Post: RE: while loop typical code
You are close but you need to understand how break is used to break out of a loop. You want it inside the while loop and to be run only if the user does NOT want to add another number. You are also ... |
|
Marbelous |
General Coding Help |
2 |
1,961 |
Apr-30-2021, 01:35 PM |
|
|
Thread: What About SQL?
Post: RE: What About SQL?
To keep things simple while you learn I suggest you try SQLite: https://sqlite.org/index.html
It's built into most python distributions. It lacks the power features of tools like Postgresql but stil... |
|
Marbelous |
General Coding Help |
5 |
2,851 |
Apr-09-2021, 01:35 PM |
|
|
Thread: High-Precision Board Voltage Reading from Python into PD
Post: RE: High-Precision Board Voltage Reading from Pyth...
I'm not familiar with Pure Data but I see there are modules available like purity and pylibpd which seem designed to pass data from python to Pure Data. Have you checked them out yet?
https://pypi.o... |
|
Marbelous |
General Coding Help |
1 |
2,079 |
Mar-29-2021, 02:57 PM |
|
|
Thread: Face detector project?
Post: RE: Face detector project?
This is a VERY popular project and there are dozens of tutorials for it. Just do a search for 'Raspberry Pi Face Detection' and pick which one you want to follow. I suggest you use a newer RPi 4 if ... |
|
Marbelous |
General Coding Help |
2 |
2,105 |
Mar-24-2021, 02:29 PM |
|
|
Thread: Understand order of magnitude performance gap between python and C++
Post: RE: Understand order of magnitude performance gap ...
Have you tried PyPy? https://www.pypy.org/features.html
Another option is to determine if there is a calculation intensive section of the code causing a bottleneck and calling your fast C++ code fro... |
|
Marbelous |
General Coding Help |
4 |
2,701 |
Mar-15-2021, 01:32 PM |
|
|
Thread: How to create a speed limiter for a car
Post: RE: How to create a speed limiter for a car
These types of things already exist. Google "vehicle speed governor".
This is something that would be best programmed into the firmware (FPGAs, etc.) in the car rather than an external python prog... |
|
Marbelous |
General Coding Help |
3 |
2,887 |
Feb-23-2021, 05:04 PM |
|
|
Thread: help !!!! really new to this
Post: RE: help !!!! really new to this
You're obviously using pandas and matplotlib so there must be more to your code than you show us. Post the whole thing in code tags (the blue/yellow python icon) and also the complete traceback. It ... |
|
Marbelous |
Homework |
2 |
2,785 |
Jan-28-2021, 04:32 PM |
|
|
Thread: Change icons of system
Post: RE: Change icons of system
Python can't do anything like this by itself. You'll need a module to call the API for whatever operating system you're using. For instance in Windows 10 you need access to the WinAPI so there are m... |
|
Marbelous |
General Coding Help |
1 |
1,911 |
Jan-28-2021, 03:30 PM |
|
|
Thread: I have two Same Code but One of them Doesnt Work
Post: RE: I have two Same Code but One of them Doesnt Wo...
You're missing a closing parentheses on line 20.
Your traceback should have pointed you to the area with the bug. Take a look and see what it says before you fix it. **wink** |
|
Marbelous |
General Coding Help |
6 |
3,085 |
Jan-22-2021, 04:50 PM |