Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 801
» Latest member: Joy3832520
» Forum threads: 1,216
» Forum posts: 7,861

Full Statistics

Online Users
There are currently 7 online users.
» 1 Member(s) | 6 Guest(s)
snippsat

Latest Threads
String index out of range
Forum: General Coding Help
Last Post: snippsat
8 minutes ago
» Replies: 3
» Views: 47
Some help with those line...
Forum: General Coding Help
Last Post: snippsat
16 minutes ago
» Replies: 1
» Views: 18
New line in pdf?
Forum: General Coding Help
Last Post: micseydel
1 hour ago
» Replies: 6
» Views: 65
OSM - Open Source Mapping
Forum: Bar
Last Post: Larz60+
2 hours ago
» Replies: 7
» Views: 44
Using the and operator to...
Forum: General Coding Help
Last Post: buran
3 hours ago
» Replies: 12
» Views: 361
Python code with serial p...
Forum: General Coding Help
Last Post: micseydel
3 hours ago
» Replies: 13
» Views: 121
Can WYSIWYG Die?
Forum: Board
Last Post: metulburr
4 hours ago
» Replies: 6
» Views: 49
List showing running tota...
Forum: Homework
Last Post: micseydel
4 hours ago
» Replies: 1
» Views: 12
Pythonista/Pythoneer
Forum: Bar
Last Post: micseydel
4 hours ago
» Replies: 5
» Views: 43
Help with parsing strings...
Forum: General Coding Help
Last Post: snippsat
5 hours ago
» Replies: 1
» Views: 13

 
  Some help with those lines
Posted by: eftemie0000 - 1 hour ago - Forum: General Coding Help - Replies (1)

import send_mail
f = open('emails.txt', 'r')
for line in f:
print line
for EMAIL in send_mail
execfile('send_mail.py')
f.close()

I want to make a loo..... More

Print this item

  String index out of range
Posted by: Salah71 - 2 hours ago - Forum: General Coding Help - Replies (3)

I am trying get this code for my HS class. I don't know much about python, i know the basics. We are trying to create strategy in Prisoners Dilemma. I..... More

Print this item

  List showing running total of instances
Posted by: Pie_Fun - 5 hours ago - Forum: Homework - Replies (1)

Hi Folks,

to try and explain what I'm trying to do
Say I have a list of numbers
48,52,55,48,52,55,60,62,48
what I want is a corresponding list ..... More

Print this item

  Help with parsing strings!
Posted by: Cenzoooo - 5 hours ago - Forum: General Coding Help - Replies (1)

Hello Python community!

I have problems with simple script which i created for gathering specific data from routers, so I would appreciate your hel..... More

Print this item

  subprocess.call change color of shell
Posted by: Aquaplant - 7 hours ago - Forum: General Coding Help - Replies (3)

Hello there,
I am using the package 'subprocess' to call some programs with parameter shell=True. Now I wish to change the color of the produced outp..... More

Print this item

  PROBLEM WITH RUN A PRORAMME
Posted by: ALADDIN_1978 - 8 hours ago - Forum: General Coding Help - No Replies

Here is the code

*************************

[python]import codecs 
from math import sqrt

users = {"Angelica": {"Blues Traveler": 3.5, "Broken..... More

Print this item

  Data window
Posted by: Felipe - 10 hours ago - Forum: General Coding Help - Replies (5)

Hi guys,


I have a huge data file that the first two columns are coordinates (latitude, longitude). I look for a way to extract the data window fr..... More

Print this item

  find location of opengl object?
Posted by: hsunteik - 10 hours ago - Forum: General Coding Help - Replies (1)

I use opengl with 3d perlin noise to generate a terrain like minecraft to create a game like minecraft?

How do I find the current coordinate of :
..... More

Print this item

  define all function, interogate list, boolean
Posted by: blacksaber - Today, 08:36 AM - Forum: Homework - Replies (3)

Hi there. I have a problem to solve in python.
I need to define an all function to see if all the elements of a list meet a certain condition. For ex..... More

Print this item

  call by objects problem
Posted by: landlord1984 - Today, 07:51 AM - Forum: General Coding Help - Replies (1)

def f(x,l=[]):
    for i in range(x):
        l.append(i*i)
    print(l) 

f(2)
f(3,[3,2,1])
f(3)
Output:
[code][0, 1]
[3, 2, 1..... More

Print this item

  Python+Selenium+PhantomJS with proxy list
Posted by: technoir - Today, 05:22 AM - Forum: Web Development - No Replies

In my script i used this method for working PhantomJS with proxy:
[code]service_args = [
   '--proxy=0.0.0.0:3128',
   '--proxy-type=http',
   ..... More

Print this item

  can only concatenate list (not "int") to list?
Posted by: landlord1984 - Today, 04:48 AM - Forum: General Coding Help - Replies (2)

I can do:
[1, 2, 3] + [4, 5, 6]
But I cannot do:

nums=[1, 2, 3]
nums[1:]+nums[0]
TypeError: can only concatenate list (no..... More

Print this item

  OSM - Open Source Mapping
Posted by: Larz60+ - Today, 04:40 AM - Forum: Bar - Replies (7)

Has anyone worked with Open Source Mapping?

Print this item

  Can WYSIWYG Die?
Posted by: micseydel - Today, 01:48 AM - Forum: Board - Replies (6)

I had WYSIWYG, because it's so misleading. Look at https://python-forum.io/Thread-Python-co...25#pid8325 w..... More

Print this item

  How to extract two data types from a text file and store them as two separate lists
Posted by: banf - Yesterday, 07:03 PM - Forum: Homework - Replies (1)

I'm currently making a program which will compress a user sentence into two variables unique_words and positions. Unique words will be all the unique ..... More

Print this item

  Basic code help
Posted by: crawlinkingsnake - Yesterday, 06:16 PM - Forum: General Coding Help - Replies (2)

Hey there, trying to run a basic Boolean program however I'm having trouble printing one of my options.
I want to print "True" for values equal to 0..... More

Print this item

  List to float
Posted by: Felipe - Yesterday, 02:41 PM - Forum: General Coding Help - Replies (6)

Hi guys,

I have a 3.1 Gb csv file which I try to clean of bad data. So, I wrote the code below:

[python]
#!/usr/bin/env python3

import csv
..... More

Print this item

  eport selections to dic
Posted by: mintsilver - Yesterday, 01:06 PM - Forum: GUI - No Replies

i want to export the selections from dropdown to dic like:

ANSWER_KEY = {0:3,1:1,2:6,3:4,4:4,5:4,6:4,7:4,8:4,9:4}
i try to used..... More

Print this item

  Error in PyScripter
Posted by: Pascal15 - Yesterday, 11:52 AM - Forum: General Coding Help - Replies (3)

I started to learn Python and wrote my first program in PyScripter

# coding: utf-8
print ("Hello!")

But when I press "Run" button it shows me this e..... More

Print this item

  Pythonista/Pythoneer
Posted by: ichabod801 - Yesterday, 11:28 AM - Forum: Bar - Replies (5)

I used to prefer pythonista, because I thought it sounded more revolutionary. But then I realized it sounded like someone who writes scripts to serve ..... More

Print this item

  Error with Pyinstaller Modules
Posted by: sym - Yesterday, 10:32 AM - Forum: General Coding Help - No Replies

Hey, I'm trying to create a bundled executable via PyInstaller for an assignment. Already tried multiple re-installations of Python but still PyInstal..... More

Print this item

  this is inconsitent with documentation
Posted by: Skaperen - Yesterday, 05:49 AM - Forum: General Coding Help - Replies (4)

the strftime() method has a single common documentation for the two modules (datetime and time) it is found in, but ...
[output]lt1/forums /home/foru..... More

Print this item

  Python code with serial port and global undefined
Posted by: marciokoko - Yesterday, 12:43 AM - Forum: General Coding Help - Replies (13)

I have the following code and I got this error after adding a few ser.close() lines (identified with *** down below):

[quote]
[color=#222222][size..... More

Print this item

  how do I print cost variable on GUI?
Posted by: Doug - Jan-15-2017, 10:30 PM - Forum: GUI - Replies (4)

how do I print cost variable on GUI? it says: cost is not defined. Thank you!

from tkinter import *

class Application(Frame):

    def __init_..... More

Print this item

  program doesn't run.
Posted by: Doug - Jan-15-2017, 07:27 PM - Forum: GUI - Replies (2)

Was watching a tutorial on youtube on how to use OOP in building GUI, but can not run identical code myself.
Error: "in line 27 app = Application() T..... More

Print this item

  HTML5?
Posted by: melakorolo - Jan-15-2017, 07:08 PM - Forum: Web Development - Replies (1)

Anyone here worked with HTML5 much yet?

Print this item

  Invalid syntax: string index out of range
Posted by: darkreaper1959 - Jan-15-2017, 06:07 PM - Forum: Homework - Replies (4)

[python]
import time
import sys

# introduction to  the game

print("You are playing the guessing game! To win you must guess the word, within t..... More

Print this item

  Access google sheets like a csv file
Posted by: perttybug - Jan-15-2017, 05:33 PM - Forum: Scripts & Snippets - Replies (4)

Hello all,

    I wrote a python library for accessing google sheets based on google's new sheet api v4, named pygsheets.

    Its well documented..... More

Print this item

  New line in pdf?
Posted by: panoss - Jan-15-2017, 07:11 AM - Forum: General Coding Help - Replies (6)

I 'm using reportlab for pdf creation..
My problem is new line, I tried \n and <br/> but failed.
What do you suggest?

Print this item

  pass after a loop is a syntax error???
Posted by: Skaperen - Jan-15-2017, 06:33 AM - Forum: General Coding Help - Replies (5)

i don't believe this should be an error
[output]lt1/forums /home/forums 3> py3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] ..... More

Print this item

  terminal/console geometry
Posted by: Skaperen - Jan-15-2017, 03:34 AM - Forum: General Coding Help - Replies (7)

on linux/unix/posix i can do this:

rows, columns = subprocess.check_output(['stty', 'size']).split()
to get terminal geometry
i..... More

Print this item

  self in functions
Posted by: marciokoko - Jan-15-2017, 02:01 AM - Forum: General Coding Help - Replies (3)

I created a class:

[python]
class AIHome:

def __init__(self):
     self.fetchUpdate();

def fetchUpdate(self):
     self.relayToggle()

d..... More

Print this item

  I don't understand this result
Posted by: Ponomarenko Pavlo - Jan-14-2017, 05:52 PM - Forum: General Coding Help - Replies (3)

>>> f = [].extend(['spam', 32, 44])
>>> type(f)
         <class 'NoneType'>

Print this item

  Function problem
Posted by: garretmorion - Jan-14-2017, 05:10 PM - Forum: Homework - Replies (9)

[color=#242729][size=small][font=Arial,]'m relatively new to python and the only other experience I've had is C++. Whenever I define a function in Pyt..... More

Print this item

  file descriptors
Posted by: Skaperen - Jan-14-2017, 10:01 AM - Forum: General Coding Help - Replies (7)

this will be run in linux.  i have a function that reads from and writes to file descriptors ... the things that are used by os.read() and os.w..... More

Print this item