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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 7,393
» Latest member: Donald
» Forum threads: 13,405
» Forum posts: 66,927

Full Statistics

Online Users
There are currently 128 online users.
» 4 Member(s) | 124 Guest(s)
perfringo, Donald, lemonred, karolinareef

Latest Threads
Compare words Python
Forum: General Coding Help
Last Post: perfringo
Less than 1 minute ago
» Replies: 3
» Views: 33
one line if else
Forum: Bar
Last Post: perfringo
16 minutes ago
» Replies: 1
» Views: 25
Log WSGI directly to stdo...
Forum: Web Development
Last Post: ThomasT
35 minutes ago
» Replies: 4
» Views: 49
Genetic Algorithm
Forum: General Coding Help
Last Post: rajeev1729
45 minutes ago
» Replies: 3
» Views: 493
Cookies
Forum: General Coding Help
Last Post: buran
1 hour ago
» Replies: 1
» Views: 20
API -> pandas -> database
Forum: Data Science
Last Post: chrismc
1 hour ago
» Replies: 0
» Views: 7
unexpected sub result aft...
Forum: General Coding Help
Last Post: buran
2 hours ago
» Replies: 1
» Views: 39
TypeError: __str__ return...
Forum: General Coding Help
Last Post: jolinchewjb
2 hours ago
» Replies: 5
» Views: 75
I need help with loop one...
Forum: General Coding Help
Last Post: buran
3 hours ago
» Replies: 3
» Views: 111
TypeError: __init__() mis...
Forum: Homework
Last Post: Pythonhelp82
6 hours ago
» Replies: 6
» Views: 156

 
  How to Host a REST API that executes a PYTHON script on the WEB SERVER
Posted by: rahul4data - Jan-22-2019, 10:39 AM - Forum: General Coding Help - No Replies

Hi Python Gurus,
I have Python installed on my machine.
I have created a python script my_python_script.py that executes locally.
Now, I am trying ..... More

Print this item

  class program no output under python 3.5.1
Posted by: jolinchewjb - Jan-22-2019, 09:43 AM - Forum: General Coding Help - Replies (1)

my python profram is as follows:
[python]
class logent(object):
def __init__(self, s):
self.line=s
self.info=s.split('',5)

def printli..... More

Print this item

  Help : Inserting records into MySQL workbench
Posted by: Aresden - Jan-22-2019, 06:36 AM - Forum: Homework - Replies (1)

Hi all, this is my first time and I am new here. With that being said, I have read the guidelines. First and foremost, this is a project homework rela..... More

Print this item

  How to work with json?
Posted by: manhsv - Jan-22-2019, 04:38 AM - Forum: Web Development - Replies (2)

As I mentioned above, I want to simplify a json string. An example for more details: I have a json string:
[python]
{"name":"erik","name_sanitized":..... More

Print this item

  Help learning a concept
Posted by: Ccjake - Jan-22-2019, 01:20 AM - Forum: Homework - Replies (2)

I have this project I have to do by wednesday, (here are the instructions https://imgur.com/WAWpWdt), but I have no idea how to do this, could anyone ..... More



Attached Files Thumbnail(s)
   
Print this item

  %d %m %y dont match my dates
Posted by: PythonSnake - Jan-22-2019, 12:55 AM - Forum: GUI - Replies (4)

Ive made a code and i need help i have python 3.4 and i made a game using a guide that said to use python 3.6 heres my code
it says that %d %m %y do..... More

Print this item

  Basic Dijkstras Implementation
Posted by: grandpapa10 - Jan-21-2019, 11:57 PM - Forum: Homework - Replies (7)

Hey there,


I m trying to run a code for a basic Dijkstra s Algo Implementation...
Unfortunately it s to no avail…
Whenever I try to run my code on t..... More

Print this item

  Turning Robot towards goal, comparison of angles
Posted by: SpaceTime - Jan-21-2019, 10:26 PM - Forum: General Coding Help - No Replies

Hey there,

I'm currently working on a project about navigating a robot to a goal point.

I use some basics from ROS but as the code is in python ..... More

Print this item

  instance of a class in different files
Posted by: DionisiO - Jan-21-2019, 08:53 PM - Forum: General Coding Help - Replies (2)

Hello All!

I'm new to Python Smile

Trying to understand how classes work around, i'm trying to use a method that is in another class from..... More

Print this item

  comparing two lists
Posted by: Siylo - Jan-21-2019, 07:20 PM - Forum: Homework - Replies (19)

I am trying to compare two lists. The first list is a constant of "correct answers". The second list is the "answers from a student". How would I chec..... More

Print this item

  UNable to install plivoxml module
Posted by: deepakdeshp - Jan-21-2019, 06:58 PM - Forum: Homework - Replies (1)

Hello,
I am trying to install plivoxml but no successful.
[python]sudo pip3 install plivoxml
The directory '/home/uma/.cache/pip/http' or its paren..... More

Print this item

  Parsing XML with lxml
Posted by: temic - Jan-21-2019, 06:07 PM - Forum: Homework - Replies (4)

Hello Smile ,
I need to parse XML file.
For example, my XML file looks like this:[python]
<root>
<child1 attr1="value1" attr2="value2"/>
<..... More

Print this item

  'str' object has no attribute 'getfo' (Paramiko)
Posted by: lateublegende - Jan-21-2019, 05:56 PM - Forum: General Coding Help - Replies (2)

Hi, I use paramiko on python 3.7.1 for simple file manipulation between a Raspberry pi with SSH.
the connection work, I can open my file and I have no..... More

Print this item

  QMenu tearoff and questions
Posted by: kiteh - Jan-21-2019, 05:44 PM - Forum: GUI - No Replies

Hi all, I am just starting out in the use of PyQt and already I am having some issues and questions about QMenu. Hoping someone could shed share light..... More

Print this item

  How to schedule independent processes
Posted by: vaeVictis - Jan-21-2019, 05:40 PM - Forum: General Coding Help - Replies (5)

Hi all.

I'm coding a little routine whose job I am going to explain in a very simplified fashion.

I have a list of "hours" and "tags", on a txt ..... More

Print this item

  why is this not filling my empty list?
Posted by: Siylo - Jan-21-2019, 05:00 PM - Forum: Homework - Replies (4)

Could someone tell me why this isn't filling my empty list?
[python]
# creating empty list to read in file
responses = []

file = open("8..... More

Print this item

  How to turn screen output into clickable hyperlinks
Posted by: windros - Jan-21-2019, 04:47 PM - Forum: General Coding Help - Replies (5)

Hello, I am writing a program that will output a list of song titles. I want a user to be able to click a song title and then display the particular s..... More

Print this item

  Matplotlib is all messed up!
Posted by: 64humans - Jan-21-2019, 02:54 PM - Forum: General Coding Help - No Replies

Hi! I created a convex hull algorithm in c and it outputs all the points and the convex hull into datapoints.txt and convexhull.txt.
However, when I ..... More

Print this item

  Python Library to parse RAML 1.0
Posted by: sameekb - Jan-21-2019, 01:51 PM - Forum: General Coding Help - Replies (1)

Dear All,

Is anybody aware of a python library to parse RAML 1.0?

I found the below libraries in Github but they not fit for my use case.

[b]..... More

Print this item

  the fast way to cut image to half
Posted by: josh1 - Jan-21-2019, 01:48 PM - Forum: Data Science - Replies (1)

i need to cut my image and now i am using crop of numpy like that a[a.shape[0] // 2:a.shape[0], :] , there is a faster function or faster processing w..... More

Print this item

  datetime replace error
Posted by: kbrummert - Jan-21-2019, 12:33 PM - Forum: General Coding Help - Replies (2)

I'm trying to apply a pretty basic datetime replace for a datagrid field, but it's not recognizing 'day' for some reason....

[python]
# change to ..... More

Print this item

  petit problème python
Posted by: salahoum - Jan-21-2019, 11:14 AM - Forum: General Coding Help - Replies (1)

programme
[python]
def extraction_donnees(texte):
fichier = open(texte)
contenu = fichier.read()
fichier.close()

lignes = con..... More

Print this item

  please help me improve this minigame
Posted by: Naito - Jan-21-2019, 10:31 AM - Forum: Completed Scripts/Snippets - Replies (7)

Hi, i made this minigame for learning purposes it works fine, but it's too long and i guess there are much more improvements i can make , i am a total..... More

Print this item

  Number within range
Posted by: MrGoat - Jan-21-2019, 09:15 AM - Forum: General Coding Help - Replies (3)

So, this was the question description I was given :

# 6.Write a Python function to check whether a number is in a given range.

Below is my code ..... More

Print this item

  Python unittest - running multiple tests from CSV file
Posted by: asheru93 - Jan-21-2019, 08:26 AM - Forum: General Coding Help - No Replies

[python]
class TestSuites(unittest.TestCase):

def completeTest(self):
pathCSV = r'pathToCSV\testCSV.csv'

with open(pathCSV..... More

Print this item

  2 forms of this tool grep command
Posted by: Lylyhannah - Jan-21-2019, 08:21 AM - Forum: General Coding Help - No Replies

this is a command i have needed a few times today, so i decided that maybe i should create it.

it is like a grep command, which reads a main file l..... More

Print this item

  pip install pygame choking on SDL dependency
Posted by: sneakyimp - Jan-21-2019, 01:40 AM - Forum: Game Development - Replies (20)

I'm working my way through a book to learn python. Nearly done. Penultimate chapter calls for an install of pygame to develop a simple game. Turns out..... More

Print this item

  SyntaxError - Integral
Posted by: michitrujillo - Jan-20-2019, 10:06 PM - Forum: General Coding Help - Replies (1)

Hello,
I am trying to solve an integral with the below code but I keep getting a Syntax error for my second def F; I would


[python]def f(x):
..... More

Print this item

  problem in replace string into file
Posted by: Saeid_Bibak - Jan-20-2019, 08:19 PM - Forum: General Coding Help - Replies (1)

hi
i have a template model,
and i want to open a file in python and replace any line of this file to one of template Models string that s name is "..... More

Print this item

  list
Posted by: josesalazmit - Jan-20-2019, 07:13 PM - Forum: Homework - Replies (3)

Hello (Please, follow my code below)
This is a portion of a code which use list and function and I took part of the code to best understand the conce..... More

Print this item

  How to insert JSON into MSSQL
Posted by: raysefo - Jan-20-2019, 06:41 PM - Forum: General Coding Help - Replies (1)

Hello guys,

I implemented a flask REST api. I want to insert JSON data into MSSQL 2016. I wonder if I can use OPENJSON in my python.I installed pyo..... More

Print this item

  NameError: name 'Paddle' is not defined
Posted by: meza1123 - Jan-20-2019, 06:37 PM - Forum: General Coding Help - Replies (2)

I keep getting this error message.

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credi..... More

Print this item

  Python related simple shell scripting issue
Posted by: Larz60+ - Jan-20-2019, 06:09 PM - Forum: Bar - Replies (4)

I have a whole bunch of old projects that were created without virtual environment.
many of them use the same packages, so I thought I'd create a bas..... More

Print this item

  Selenium click on popup button???
Posted by: GuJu - Jan-20-2019, 05:01 PM - Forum: General Coding Help - Replies (6)

Hi everyone!
I have been searching for this problem for a week but i couldnt find anything about it.
The problem is this. After i entered the instagr..... More

Print this item

  Showing text in QTableView
Posted by: sequence - Jan-20-2019, 04:59 PM - Forum: GUI - No Replies

I want to implement a simple view to which my program would then export data from a text file to show, which should look like this:

..... More

Print this item