Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    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 3 366 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 1,106 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 4 458 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 268 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 252 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 590 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 331 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 364 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 489 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 401 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 437 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 339 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 483 Jan-22-2021, 04:50 PM
    Thread: How to unlock pc using opencv
Post: RE: How to unlock pc using opencv

You didn't specify so I'm assuming you're talking about Windows. I don't think Python and OpenCV can't help you here. You will need to access the WinAPI LockScreen classes. I know they expose simpl...
Marbelous General Coding Help 3 417 Jan-13-2021, 03:08 PM
    Thread: Python Coding Help: Calculating Sums
Post: RE: Python Coding Help: Calculating Sums

Dean is trying to show you that although you COULD iterate through your sequence by using length and range functions, python has a superior option with its ability to iterate directly over any sequen...
Marbelous Homework 9 754 Jan-12-2021, 08:58 PM
    Thread: Python OOP
Post: RE: Python OOP

The syntax for doing this in python is very easy since you just create a python file and use it as a module in your main file. How you decide to build a file structure is the tricky part and it depen...
Marbelous General Coding Help 3 400 Dec-28-2020, 04:14 PM
    Thread: ModuleNotFoundError: No module named 'com'
Post: RE: ModuleNotFoundError: No module named 'com'

Where is the com module? Is it in the same directory as the main program or somewhere in the PYTHONPATH so your programs can find it? Setting PYTHONPATH: https://www.techwalla.com/articles/how-t......
Marbelous General Coding Help 9 1,258 Dec-10-2020, 06:51 PM
    Thread: Recommend Recent Python Books or Online Tutorials
Post: RE: Recommend Recent Python Books or Online Tutori...

(Dec-07-2020, 04:51 PM)muzikman Wrote: I will check my Python directory for the tutorial. This is a great place as well W3C Schools on Python Thanks again. I'm a big fan of W3 courses on HTML, XML,...
Marbelous Homework 7 529 Dec-10-2020, 04:28 PM
    Thread: Recommend Recent Python Books or Online Tutorials
Post: RE: Recommend Recent Python Books or Online Tutori...

Guido's tutorial is in the Python Manual along with the reference and standard library. It is the second folder (after What's New in Python). With your experience you should be able to skim a lot of...
Marbelous Homework 7 529 Dec-10-2020, 04:26 PM
    Thread: Recommend Recent Python Books or Online Tutorials
Post: RE: Recommend Recent Python Books or Online Tutori...

(Dec-07-2020, 03:37 PM)muzikman Wrote: Greetings, I want to know if there are any recent Python books that cover python from beginning to end. There are so many resources online on how to learn Pyt...
Marbelous Homework 7 529 Dec-07-2020, 04:32 PM

User Panel Messages

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