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,673
» Latest member: techthiru
» Forum threads: 38,647
» Forum posts: 175,057

Full Statistics

Online Users
There are currently 405 online users.
» 2 Member(s) | 399 Guest(s)
Bing, Yandex, Baidu, Google, snippsat, techthiru

Latest Threads
Deciding on a Macbook Pro...
Forum: News and Discussions
Last Post: techthiru
3 minutes ago
» Replies: 0
» Views: 4
Pylance: "... is not a kn...
Forum: General Coding Help
Last Post: MvGulik
30 minutes ago
» Replies: 2
» Views: 71
replace or remove text fr...
Forum: General Coding Help
Last Post: Curbie
45 minutes ago
» Replies: 14
» Views: 983
While loop is terminating...
Forum: Homework
Last Post: Plyth
Yesterday, 01:49 AM
» Replies: 2
» Views: 248
PythonPath file
Forum: General Coding Help
Last Post: Pedroski55
Jul-04-2025, 10:56 PM
» Replies: 7
» Views: 19,814
Building a food delivery ...
Forum: Homework
Last Post: nooryasmeen022
Jul-04-2025, 04:12 PM
» Replies: 3
» Views: 7,550
Python Install Mager Help
Forum: News and Discussions
Last Post: snippsat
Jul-04-2025, 09:43 AM
» Replies: 5
» Views: 389
RemoTe server operation w...
Forum: General Coding Help
Last Post: mario17
Jul-04-2025, 07:18 AM
» Replies: 4
» Views: 341
Hide CLI while grabbing i...
Forum: GUI
Last Post: Gribouillis
Jul-03-2025, 08:12 AM
» Replies: 1
» Views: 190
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Jul-02-2025, 05:41 PM
» Replies: 4
» Views: 710

 
  Logging module stopped working!
Posted by: llanitedave - Oct-17-2017, 04:14 AM - Forum: General Coding Help - Replies (1)

I'm building an application that contains some long-running operations in a separate thread from the user interface.  I've been using the logging modu..... More

Print this item

  invoke c++ shared library but the FILE fread() function always return 0
Posted by: sansirokarl - Oct-17-2017, 03:08 AM - Forum: General Coding Help - Replies (1)

this is my c code :
[quote]//libtest.c
#include <stdio.h>
#include <string.h>

void testfile(const char* file)
{
FILE *..... More

Print this item

  version 2 to 3 changes
Posted by: Skaperen - Oct-17-2017, 02:28 AM - Forum: News and Discussions - Replies (4)

as we all know, version 3 changed the print statement to a built in print() function.  i am curious why and also curious why not other statements.

Print this item

  Error with conditionals
Posted by: RiceGum - Oct-17-2017, 12:37 AM - Forum: Homework - Replies (17)

mes = input()

if mes in ("Abril", "Junho", "Setembro", "Novembro"):
print("30 dias")
elif mes in ("Janeiro", "Março", "Abril", "Maio", "Julho..... More

Print this item

  lcm
Posted by: mp3909 - Oct-16-2017, 08:37 PM - Forum: General Coding Help - Replies (2)

[python]def lcm(m,n):
answer = 0
if m>n:
for i in range(m,m*n+1,m):
if i%n==0:
answer==i
break
return answer

>>> lcm(5,3)
0..... More

Print this item

  Flask Flash Messages Blank
Posted by: Leaf - Oct-16-2017, 08:13 PM - Forum: Web Scraping & Web Development - Replies (2)

View.py
[python]
@site.route('/dashboard/')
def dashboard():
flash("flash test!!!!")
flash("fladfasdfsaassh test!!!!")
flash("asdfas asfsa..... More

Print this item

  Windwos, VirturalQueryEx and ReadProcessMemory
Posted by: Awesometech - Oct-16-2017, 07:56 PM - Forum: General Coding Help - No Replies

Hi all,

I am working on my own memory scanner. It uses Windows API, VirtualQueryEX
and ReadProcessMemory. I am not sure I put down the following p..... More

Print this item

  Anyone help me to run this project?
Posted by: HungTran - Oct-16-2017, 07:42 PM - Forum: Data Science - Replies (3)

I am new in python and I am studying simulation for organic materials. I found a thesis with python code at the end of thesis (link here http://liu.di..... More

Print this item

  Unable to output the indices from an input file
Posted by: rainbow2312 - Oct-16-2017, 06:13 PM - Forum: Homework - Replies (1)

Hi everyone,

I'm trying to write a program to find all the indices of a value being searched from an input file. The program will accept the number..... More

Print this item

  Error Ctypes in Windows
Posted by: rramosg - Oct-16-2017, 04:57 PM - Forum: General Coding Help - Replies (4)

Hello everyone.

I have just begun to program in Python. I have done several scripts and now I am trying to call the Windows API with Ctypes module...... More

Print this item

  Python Editor
Posted by: sairam132033 - Oct-16-2017, 04:44 PM - Forum: General Coding Help - Replies (17)

Would you please recommend me a good Python editor?

Sairam

Print this item

  Interaction with games such as BO3
Posted by: nmills688 - Oct-16-2017, 04:42 PM - Forum: General Coding Help - Replies (1)

I was wondering if anyone knows of a way to get game information such as zombie or player locations with python. I'm looking for something like game.g..... More

Print this item

  Creating folders dynamically with year/month/date
Posted by: sritsv - Oct-16-2017, 03:44 PM - Forum: General Coding Help - No Replies

Hello Team,

Below is the scenario, i need help in S3 using python.

In S3 have a path till Table level manually created, <Bucket-Name> / <Subject..... More

Print this item

  database connectivity
Posted by: achhayya - Oct-16-2017, 02:37 PM - Forum: Homework - Replies (1)

Hello
I have installed the module psycopg2(pp psycopg2)

My program is having only one below statement

import psycopg2

When i try to execut..... More

Print this item

  A good tutorial for beginners? (Youtube)
Posted by: Peter_EU - Oct-16-2017, 02:35 PM - Forum: Tutorial Requests and Submissions - Replies (11)

Hallowings,

I am new to this, so my excuse if I am asking smt. silly :)

Uh, I just started coding, I finished all lessons on CodeAcademy (Python..... More

Print this item

  Having issues with a lab
Posted by: Thompscr01 - Oct-16-2017, 02:21 PM - Forum: Homework - No Replies

Question: I am currently having an issue with a lab in my class and am looking for help setting up my program. The professor asked us to make it "idio..... More

Print this item

Question Implementing classes , RSS feed program
Posted by: Miraclefruit - Oct-16-2017, 02:16 PM - Forum: Homework - Replies (1)

News Feed Program. I need help fixing these errors listed below. My code is completed but I don't know how to approach these errors. If you'd like det..... More


Attached Files

.py   ps5.py (Size: 7.27 KB / Downloads: 696)
Print this item

  web interface to check python code
Posted by: 1885 - Oct-16-2017, 12:11 PM - Forum: Web Scraping & Web Development - Replies (3)

I teach computer science in Washington State. Kennewick
I recently move from Java to Python for our core Language.
It was a very good choice. So I ..... More

Print this item

  I need guidance in building a program
Posted by: Rius2 - Oct-16-2017, 10:42 AM - Forum: Web Scraping & Web Development - Replies (4)

Hello,i need guidance in choosing a direction for a program i want to build. I am new to programing in general, and very new to python in particular, ..... More

Print this item

  Newly written .txt file not printing
Posted by: Crackity - Oct-16-2017, 06:23 AM - Forum: Homework - Replies (11)

Hello all,

Continuing my self study I just created a simple program which was to "write" to a new text file. The lesson is demonstrating a few diff..... More

Print this item

  logic comparater based on dictionary values
Posted by: ijosefson - Oct-16-2017, 03:56 AM - Forum: Homework - Replies (3)

I have the following 'dictionary':
a = {"one":(10, 11.25), "two":(11, 12.25), "three":(12, 13.25)}

I would like to build an 'if statement' based o..... More

Print this item

  many versions on python on linux
Posted by: Skaperen - Oct-16-2017, 03:12 AM - Forum: News and Discussions - Replies (8)

i would like to setup as many installed versions of python under linux as possible without chroots, containers or virtual machines.  anyone kno..... More

Print this item

  trouble importing class definition from one .py into another
Posted by: ijosefson - Oct-16-2017, 02:38 AM - Forum: Homework - Replies (3)

Problem: I'm having issues calling classes in a program.

I created a program named example.py which has the following code:
[python]
class Exampl..... More

Print this item

  I'm a beginner
Posted by: michaelshopfer - Oct-16-2017, 02:37 AM - Forum: Bar - Replies (10)

Hello, I want to know where I can learn to program some simple programming language (I'm a beginner) if you can help me, thank you.

Print this item

  Threading and Queue
Posted by: nexusfactor - Oct-16-2017, 02:34 AM - Forum: General Coding Help - Replies (5)

I'm working on a backup script for home use and at the same time learn threading. I was researching about threads and sharing data across threads. All..... More

Print this item

  How to calculate the mccabe complexity in module falke8?
Posted by: fuqianz - Oct-16-2017, 12:56 AM - Forum: General Coding Help - Replies (1)

Right now, i am working on a assignment for a class, which is to calculate the mccabe complexity like it does in module flake8.
And I found that, if ..... More

Print this item

  Blender courses on sale for only $10
Posted by: Larz60+ - Oct-16-2017, 12:34 AM - Forum: News and Discussions - Replies (4)

Thought I'd post this here.
Blender is great for any 3D art, animations or even movies.
I heard about this sale on the radio today while I was drivi..... More

Print this item

  Presenting data from a dictionary in a basic table
Posted by: ijosefson - Oct-15-2017, 11:18 PM - Forum: Homework - Replies (3)

Requirement: present keys and values from a dictionary w/ headers via a __str__ method. Also present an additional value calculated in an earlier meth..... More

Print this item

  Looping over amount of attempts
Posted by: Beatenberg - Oct-15-2017, 11:08 PM - Forum: Homework - Replies (4)

Hey so my code is about a username and password system. My issue is that after the user fails to input the correct details (from Intro) more than once..... More

Print this item

  MySQL SSL Connection, Need help
Posted by: LordVaderXIII - Oct-15-2017, 10:51 PM - Forum: General Coding Help - Replies (3)

Hey Everyone

I have a project that requires uploading excel files to a Google Cloud SQL Database (MySQL).

I have the below code that I have bor..... More

Print this item

  Argument lists
Posted by: sobrio1 - Oct-15-2017, 09:52 PM - Forum: Data Science - Replies (7)

Does anyone know how to get an argument list for a function besides using shift+tab?

I can't use my_dataframe.loc() properly because I have no idea..... More

Print this item

  All pip install attempts are met with SSL error
Posted by: flycast - Oct-15-2017, 08:53 PM - Forum: General Coding Help - Replies (5)

Using Windows...
Python 3.6.3
When I attempt to install anything using:

[quote]C:\Users\Eric>pip install ssl
Collecting ssl
Could not fetch U..... More

Print this item

  My if and while loop statements aren't working
Posted by: RedSkeleton007 - Oct-15-2017, 08:52 PM - Forum: General Coding Help - Replies (7)

I just get a syntax error with the if statement:
[python]
#adding two integers together when one of them is a sring by default:
x = 15
y = "5"
z ..... More

Print this item

  Help with Python and HTML code
Posted by: karlo_ds - Oct-15-2017, 08:29 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi everyone,

    I'm starting to work with Python and I have a problem ... I need to modify a html code parameter of a web-page; I need to read the..... More

Print this item

  Summing product of tuples inside a dictionary
Posted by: ijosefson - Oct-15-2017, 07:48 PM - Forum: Homework - Replies (7)

I'm having trouble figuring out how to implement this.
I have a dictionary with keyed touples. I would like to multiply the 2 touples and sum for eve..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Deciding on a Macbook Pro... 3 minutes ago techthiru techthiru News and Disc...
  Pylance: "... is not a kn... 30 minutes ago MvGulik MvGulik General Codin...
  replace or remove text fr... 45 minutes ago Curbie Curbie General Codin...
  While loop is terminating... Yesterday, 01:49 jumpsworthnow Plyth Homework
  PythonPath file 07-04, 22:56 JohnRLaw Pedroski55 General Codin...
  Building a food delivery ... 07-04, 16:12 ElenaPapagia nooryasmeen022 Homework
  Python Install Mager Help 07-04, 09:43 bowens1983 snippsat News and Disc...
  RemoTe server operation w... 07-04, 07:18 mario17 mario17 General Codin...
  [WxPython] Hide CLI while... 07-03, 08:12 Winfried Gribouillis GUI
  Venv - Python Virtual Env... 07-02, 17:41 DanneA Larz60+ General Codin...
  [Tkinter] textbox compare... 07-02, 13:40 dmac6809 deanhystad GUI
Most views
  The best Prog... 572437
  Tutorial Requ... 485318
  Web Scraping ... 436968
  Newbie with P... 379824
  Thread remain... 351278
Most reputation
buran 581
snippsat 507
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+ 12071
buran 8173
snippsat 7344
deanhystad 6846
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
as1221 3
Newest members
techthiru Today
skylarkuk Today
OLHOSANTOTM Yesterday
viratsolanki Yesterday
chaless Yesterday

User Panel Messages

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