Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,950
» Latest member: MatthewRodia
» Forum threads: 38,726
» Forum posts: 175,524

Full Statistics

Online Users
There are currently 66 online users.
» 0 Member(s) | 57 Guest(s)
Google, Bing, Applebot, Facebook, AOL

Latest Threads
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 5
» Views: 9,231
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 124
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 532
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 157
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 689
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,928
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,201
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,566
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,139
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,872

 
  My version GhostGame
Posted by: anickone - Jun-18-2018, 08:52 PM - Forum: Game Development - Replies (7)

[python]
from random import randint

def get_msg(msg, subject, subject_mark):
for i in range(1, doors+1):
if i in subject:
..... More

Print this item

  list and for
Posted by: Breex - Jun-18-2018, 07:56 PM - Forum: General Coding Help - Replies (3)

I'm new at python programing i read some basic and i have a question. Probably it is easy but i dont know how to do it. (im looking for answer for 2 d..... More

Print this item

  filtering on a paginated queryset
Posted by: garynobles - Jun-18-2018, 06:30 PM - Forum: Web Scraping & Web Development - No Replies

This code combines filtering and pagination, the pagination works, but I can't understand how to get the filtering to work. The containerlist gets fil..... More

Print this item

  Windows 10 Compatability
Posted by: hughmontgomery - Jun-18-2018, 05:01 PM - Forum: General Coding Help - Replies (3)

IMITS-PHSA (Provincial Health Services Authority) in British Columbia is planning the future workspace requirements for our users and require compatib..... More

Print this item

  How to extract previous and current rows if their value is equal
Posted by: SriRajesh - Jun-18-2018, 02:49 PM - Forum: Data Science - Replies (5)

Hi,

I want to extract rows if the previous row of Name column equal to 'MM' and current row of Name column is 'MA'

[python]import pandas as pd
..... More

Print this item

  libmdbx, prod-ready fork of LMDB: someone can wrap it for python?
Posted by: genryrar - Jun-18-2018, 02:34 PM - Forum: News and Discussions - Replies (5)

LMDB is awesome key-value in-disk db with lightning read speed and good write speed.
But as you know, it have some problems for using in production -..... More

Print this item

  Ioctl Interface
Posted by: mickib1 - Jun-18-2018, 02:11 PM - Forum: General Coding Help - Replies (3)

Hi
I am trying to implement IOCTL interface to driver
I have created a strcuture
[python]
class pass_cmd(Structure):
_fields_ = [
(..... More

Print this item

  Looking for someone to create a simple Python Code and a Flowchart!
Posted by: tedlee - Jun-18-2018, 11:09 AM - Forum: Jobs - Replies (2)

Looking for someone to create a simple Python Code and a Flowchart!, Willing to pay for the right work done.
I have made previous codes on different ..... More

Print this item

  ImportError: No module named django.core.exceptions in google app engine
Posted by: timtinan37 - Jun-18-2018, 10:52 AM - Forum: Web Scraping & Web Development - Replies (4)

djangoforms.py module was missing from google.appengine.ext.db. So I manually putted the module there from net. But it can't import django.core.except..... More

Print this item

  EYE LID RIG / PHYTON ERROR
Posted by: everend - Jun-18-2018, 10:02 AM - Forum: Homework - No Replies

Hello, I am in a process of doing an eye lid rigging. As I was following this note I run into a problem with phyton script.

HERE is a script. **..... More

Print this item

  Machine Leaning Programmer wanted
Posted by: markyugen - Jun-18-2018, 06:55 AM - Forum: Jobs - Replies (2)

I'm looking to work with somebody who can assist me in getting some Machine Learning GANs working on my computer. I will be working with Python/Tensor..... More

Print this item

  ValueError: could not broadcast input array from shape (1555200) into shape (0)
Posted by: promach - Jun-18-2018, 06:09 AM - Forum: General Coding Help - Replies (1)

For mxp_filters.ipynb , why do I have the following error ? [error]error "..... More

Print this item

  Count Letters in a Sentence (without using the Count Function)
Posted by: bhill - Jun-18-2018, 04:42 AM - Forum: Homework - Replies (3)

Hello all,

Newbie Pythoner here.

I have been tasked with Counting Letters in a Sentence. However, I cannot use the Count function. What I have..... More

Print this item

  PHP Gallery sorting by newest file
Posted by: Kimzer - Jun-18-2018, 03:49 AM - Forum: Web Scraping & Web Development - Replies (2)

Php Gallery

Found this neat php gallery, but im trying to get it to display t..... More

Print this item

  creating a 3x3 multiplication table
Posted by: aditvaddi - Jun-18-2018, 02:45 AM - Forum: Homework - Replies (1)

So im trying to get this as the output:

Output:
1 2 3 1| 1 2 3 2| 2 4 6 3| 3 6 9
Here's the code i'm using:
[python]
print(''' ..... More

Print this item

  Program does not end
Posted by: Cheezygrapes - Jun-18-2018, 12:02 AM - Forum: Homework - Replies (3)

Hello,

I'm working on a homework assignment and I'm having issues with the program not ending after an option other than "1" is selected. When I se..... More

Print this item

  For Loops & Variables
Posted by: aditvaddi - Jun-17-2018, 11:07 PM - Forum: Homework - Replies (4)

for i in range(3):
    for j in range(2):
        print(j)
I don't understand how the output of this is:
0
1
0
1
0
1

..... More

Print this item

  python variable issues - using spyder and opencv
Posted by: Afrodizzyjack - Jun-17-2018, 07:14 PM - Forum: General Coding Help - Replies (5)

Hello all! thank you for reading and hopefully helping with my issue.

trying to run OpenCV through python spyder on anaconda. I am following an onl..... More

Print this item

  Trouble with edX Python Final
Posted by: sarah_mb_sues - Jun-17-2018, 06:32 PM - Forum: Homework - Replies (11)

Hello Everyone,

I am currently taking the edX course "Introduction to Python: Absolute Beginner" through Microsoft (Course ID DEV236x), and am havi..... More

Print this item

  webscraping yahoo data - custom date implementation
Posted by: Jens89 - Jun-17-2018, 05:24 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi,

I'm trying to webscrape historical prices from yahoo finance.
I managed to get the data, however only for the most recent months (which is abo..... More

Print this item

  where i want to keep modules
Posted by: Skaperen - Jun-17-2018, 03:40 PM - Forum: News and Discussions - Replies (1)

i would like to start keeping my personal modules in a separate subdirectory than scripts. i have a "cmd" subdirectory that is much like a "bin" subd..... More

Print this item

  question on using for
Posted by: tryingtolearnpython - Jun-17-2018, 11:28 AM - Forum: General Coding Help - Replies (15)

[python]trials = 10000
successes = 0

for _ in np.arange(trials):
rolls = np.random.choice(dice, k)
if sum(rolls == 6) > 0:
succ..... More

Print this item

  Error message in Jupyter Notebook with json
Posted by: diet - Jun-17-2018, 09:37 AM - Forum: General Coding Help - Replies (4)

Hi,

I am new to Python and Jupyter Notebook and I get the error below in Jupyter Notebook while the code works in Spyder:

[python]
import base..... More

Print this item

  Table creating code
Posted by: qqqqqqqqqqqq - Jun-17-2018, 08:17 AM - Forum: General Coding Help - Replies (1)

hi all,
below is the code posted by me. I am getting the error of undefined token for the tabulate code while printing it in visual studio.
Kindly h..... More

Print this item

  How to make the python default language be 3.6 instead of 2.7
Posted by: sylas - Jun-17-2018, 06:22 AM - Forum: General Coding Help - Replies (4)

Hi all ! Now I am in Linux. On the terminal, if I type "python", python 2.7 appears. If I type "python3", python 3 appears. I should like very much th..... More

Print this item

  Converting user input to integers (retitled)
Posted by: rwood1875 - Jun-17-2018, 04:01 AM - Forum: Homework - Replies (1)

The homework initially left line 6 as 'if answer == number1 + number2' to show the error of trying to compare strings to integers, (ie. even if the us..... More

Print this item

  ImportError: No module named error
Posted by: oliver592 - Jun-17-2018, 02:43 AM - Forum: General Coding Help - Replies (2)

Hi all!

So I have a small Python program I'm trying to get working on my Mac downloaded from here: https://gitlab.com/bharadwaj-raju/WeatherDesk . ..... More

Print this item

  Traffic simulation - stopping a car
Posted by: darter - Jun-17-2018, 01:58 AM - Forum: Game Development - No Replies

Hey, I am just wondering how I might simulate an automobile traffic situation. For example, driving down a road, encountering an obstacle (maybe a sto..... More

Print this item

  Multiply entire column with a constant with pandas in python
Posted by: fyec - Jun-17-2018, 01:53 AM - Forum: Data Science - Replies (1)

I want to multiply '1' column which is numbered automatically as (0,1,2,3). I am getting "KeyError: 1".
What's wrong in my codes?
[python]inpExc..... More

Print this item

  Help with my assingment please !!
Posted by: rrodriguez0881 - Jun-17-2018, 12:44 AM - Forum: Homework - Replies (2)

[output]Enter 1 to start a new sale
Enter 2 to view the total of all sales
Enter 3 to view the total tax collected
Enter 4 to view the quantity of ..... More

Print this item

  python-nmap
Posted by: Skaperen - Jun-16-2018, 10:52 PM - Forum: News and Discussions - Replies (2)

i saw a package named python-nmap. but i could not find a description. i don't want to install it until i know what it is for. does anyone k..... More

Print this item

  Converting units in NetCdf Files in Python
Posted by: fyec - Jun-16-2018, 10:04 PM - Forum: General Coding Help - Replies (1)

I have a script that reads Netcdf (.nc) files and coordinates from a 'csv' file, then it extracts a txt file that includes values of different paramet..... More

Print this item

  Python 2 to Python 3 Struct Issue
Posted by: robin73 - Jun-16-2018, 09:35 PM - Forum: General Coding Help - Replies (5)

I'm trying to get the following code to work in Python 3. It is fine in Python 2. I have changed the xranges to range, but there is a problem with..... More

Print this item

  wrong values
Posted by: cybervulcan - Jun-16-2018, 09:14 PM - Forum: General Coding Help - Replies (3)

I entered code from programming book "Python's Companion" about a bill calculator and although the script worked it returned a value of 111.78 when th..... More

Print this item

  Optimization problem using pulp
Posted by: kiki1113 - Jun-16-2018, 09:08 PM - Forum: Homework - No Replies

Hello all - I have an optimization assignment that I'm struggling with - see problem below.
[quote]
Chandler Oil has 5000 barrels of crude oil 1 and..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576758
  Tutorial Requ... 499056
  Web Scraping ... 440556
  Newbie with P... 384521
  New Users Int... 368344
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
MatthewRodia Today
andydt Today
victorcrown Yesterday
Markbel386 Yesterday
trntgl Yesterday

User Panel Messages

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