15,185 Topics

Member Avatar for
Member Avatar for robert.montgomery.75054

I am having problem with my python homework. My homework is asking to create a Python program to calculate a student test averages regardless of how many tests will be averaged. Also, it is asking to allow the teacher to continue averaging grades for any number of students. This is …

Member Avatar for robert.montgomery.75054
0
222
Member Avatar for nUmbdA

Thank you for looking at my issue. I am a beginner in school and we have an excercise that asks us to write a program that uses nestes loos to draw this patter: ******* ****** ***** **** *** ** * and ** * * * * * * * * …

Member Avatar for snippsat
0
114
Member Avatar for glenwill101

While at work i had nothing to do so i wrote this simple python script that uses the dbm module to store user information its not perfect but im sure someone will find it helpful.

1
236
Member Avatar for elieobeid7

I'm creating a python rest api wrapper to a website, i created a file called api.py, then used called the api using [requests](http://docs.python-requests.org/en/latest/), like so: `requests.get('http://example.com/api', auth=('username','apikey'))` How to create a class nammed Class1, then put the url in it using [urlparse](http://docs.python.org/library/urlparse.html), then create another file called example.py, call the …

0
112
Member Avatar for MissAuditore

Hi guys, I'm pretty new to Python and having some issues. I have some data points in first and second column. First column is elapsed time. I am trying to implement a differential interval condition which goes as following: ln(t_i+j)-ln(t_i) >= exp(0.2) ln(t_i)-ln(t_i-k) >= exp(0.2) My code so far:P So …

0
90
Member Avatar for ttambet

How to change font size in win32print module? Win32print works but the font size in virtual printer or local printer is too small (maybe size is 9), but required size maybe 14. Or alternative for win32print?

0
38
Member Avatar for adil.mahmud.choudhury

I am very new to python. I have developed a program using the GUI of python. My development is almost done but i am stuck with a point. I have designed my gui using Listbox to read data from a file and show it. All i need to add a …

Member Avatar for woooee
0
179
Member Avatar for Batcher

New to Python and programming. I want to start with a txt file with different names per line Output a program that will create a directory for each entry in txt file I'm having problems getting txt file values into Python list, and using that as input for directory name, …

Member Avatar for TrustyTony
0
181
Member Avatar for davecoteproductions

Hi, Cote here, and I'm very pleased to announce that I've ported ALL my sl4a apps to eclipse apk, it embeds with the python interpreter, no need to install anything but the app off google play! I have completed: A) Android Eye (Computer Vision), that takes a picture and tells …

Member Avatar for BigPaw
0
325
Member Avatar for Emul

Installing Eric4 on Windows 7, 32 Bit; using MS VS C++ 2010 After much ado and trial-and-error I was able to get it installed, via the following steps: Command-prompt run as administrator in all cases All packages installed in the root of C:\ After changing each environment variable, update command-prompt …

0
127
Member Avatar for Tortura

Hey guys, I'm trying to move data by clicking on a QPushButton from one QTreeView in the second QTreeView. Do you know how to do this. I know that I have to connect the QPushButton with a method which makes this possible. I don't really know how this method looks …

0
125
Member Avatar for manmohit.sehgal

Write a function called blackAndWhite that has as input argument the file name of an image file (example: bluefish.gif), then transforms the image in black and white and displays it. In order to create a black and white image, do: 1. Prepare the image file: (i.e open the image file …

Member Avatar for manmohit.sehgal
-3
82
Member Avatar for compscihelp

Hi, I need to create a function using **recursion** to find out if two lists have the same shape. For example, if nest1 = [4, [ [3,6], [] ,7] ,[8] ] nest2 = [ [ [3] ] , 7 , [ [5 , [9 , 2] , [ [ [ …

Member Avatar for compscihelp
0
201
Member Avatar for echocoder

I have a nested list, named env, created in the constructor and another method to populate an element of the grid defined as below: ... class Environment(object): def __init__(self,rowCount,columnCount): env = [[ None for i in range(columnCount)] for j in range(rowCount) ] return env def addElement(self, row, column): self[row][column] = …

Member Avatar for echocoder
0
1K
Member Avatar for Jacklittle01

Hi all: I'm building a game (text-based rpg) and i need to learn how to add a checkpoint-like system into it, but i want it to be able to fit in my script

0
70
Member Avatar for Eridanus

Hello, I need a little help with the correct implementantion of the bisection search algorithm in the following exercise: - with 2 given variables, balance and annual interest rate, calculate the smallest monthly payment so that we can pay off the balance within a year test case: balance = 320000 …

Member Avatar for amRx1
0
1K
Member Avatar for kogia

I'am trying to undestand how I can use the csv module in python to open a csv file in the same folder as the python script - and then create a .shp (shape file) using the shapefile module pyshp. The csv file looks like this, but can have a couple …

Member Avatar for kogia
0
249
Member Avatar for Jacklittle01

what is wrong with this code #This is not free source #Don't cheat by looking @ this #If you do you ruin the game #A Towel Production # APOC #------- global ammo1 global ammo2 global ammo3 global health global tech_parts global exp global radio_parts ammo1=10 ammo2=0 ammo3=0 health=100 tech_parts=0 exp=0 …

Member Avatar for TrustyTony
0
190
Member Avatar for whoisstanley

Hi guys, i'm pretty much new to python, this might be simple for some of u. But i appreciate if help is given. Here's my sample code: import random animal = ['duck', 'chicken', 'horse'] drinks = ['coke', 'tea', 'coffee'] test = animal + drinks print(test) word = random.choice(test) print(word) print() …

Member Avatar for Lardmeister
0
182
Member Avatar for nUmbdA

Hello everyone. I am in a programming fundamentals class which we are using python. I am working on a Lab problem and really am not 100% sure how to do it. The Problem: A shipping company (Fast Freight Shipping Company) wants a program that asks the user to enter the …

Member Avatar for nUmbdA
0
3K
Member Avatar for emeka.l.iwuagwu

good day all, i was having a little difficulty in trying to code an application in python to read sms i do something like this import inbox import sms but i still dont know where to go from there. The main objective of the code is to intercept sms messages …

Member Avatar for M.S.
0
406
Member Avatar for Gribouillis

This snippet defines a `dir()` function which extends python's builtin `dir()` function by adding options to filter the returned sequence of strings by the means of regular expressions. The main use case is live inspection of python objects and modules during an interactive session with the python interpreter. The idea …

Member Avatar for TrustyTony
2
497
Member Avatar for PeteB247

Hi, I am currently undertaking an assignment for university. I've having quite a bit of trouble with this seemingly simple task, which is to import the data from 2 .txt files into 2 tables within an sql database via python. Here is what I've done so far. This subject is …

Member Avatar for woooee
0
2K
Member Avatar for kRaeTwin

Hi, I've just started learning Python and for my first script I wanted to make something that would make life easier and that I would actually use, so starting small I've began working on a Torrent Search script that uses the ISOHunt API. However I've ran into a problem in …

Member Avatar for woooee
0
1K
Member Avatar for rrn8

hello, iam a newbie to python, i am trying to execute a shell command within python code and need the output of the shell command to be passed to the same python code for subsequent use. Here i need the value of the string "ListenPort" from the text file /tmp/file.txt …

Member Avatar for rrn8
0
306
Member Avatar for danikabhai

Hello evryone I want to access the **key** of a **particular edge**(for example edge (1,2)) in a **multigraph**, but I am unable to do so. Please help me out here. Any help will be greatly appreciated. Thanks

Member Avatar for danikabhai
0
111
Member Avatar for Niner710

Hi, I have a python array that is either a list or numpy array. I want to do a bitwise inversion of all the elements and was wondering what the easiest way would be. a = [0xFF,0xFF,0xFF,0xFF] invert to.... b = [0x00,0x00,0x00,0x00] What is the easiest way to do this? …

Member Avatar for TrustyTony
0
77
Member Avatar for sym366

I upload my test_maze.txt so you can see my problem. I have some 3 unwanted $ that went up and 1 unwanted $ that went down on my path on the maze from P to T. I think the problem is in line 20 in the def main(): of my …

Member Avatar for Xantipius
0
1K
Member Avatar for lancelot626

I saved some images in an sqlite database but when i tried to display them using static bitmap i get an error OnOpenEdit self.frmEdit.imageCtrl.SetBitmap((i[7])) File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_controls.py", line 1229, in SetBitmap return _controls_.StaticBitmap_SetBitmap(*args, **kwargs) TypeError: in method 'StaticBitmap_SetBitmap', expected argument 2 of type 'wxBitmap const &' here is a print of …

0
135
Member Avatar for BigPaw

I would like to write Python 3.3 code on my Android Mobile Phone. Are you using any particular app to do this? Is it also possible to compile?

Member Avatar for BigPaw
0
128

The End.