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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,655
» Latest member: WillieNelson
» Forum threads: 37,400
» Forum posts: 169,952

Full Statistics

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

Latest Threads
How to edit Tkinter Minim...
Forum: General Coding Help
Last Post: kucingkembar
5 minutes ago
» Replies: 0
» Views: 1
using mutable in function...
Forum: General Coding Help
Last Post: akbarza
24 minutes ago
» Replies: 2
» Views: 144
Why am I getting this err...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 0
» Views: 13
How To Make A PyQt5 Progr...
Forum: GUI
Last Post: menator01
6 hours ago
» Replies: 1
» Views: 85
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: deanhystad
7 hours ago
» Replies: 1
» Views: 66
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
Yesterday, 07:40 PM
» Replies: 0
» Views: 90
New on python. Needs help...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:47 PM
» Replies: 1
» Views: 98
Can provide python tutori...
Forum: Jobs
Last Post: carellapansullon
Yesterday, 05:00 PM
» Replies: 1
» Views: 193
Win or Loss Prediction
Forum: General Coding Help
Last Post: ksasi2k3
Yesterday, 01:46 PM
» Replies: 4
» Views: 191
Good way to ignore case w...
Forum: General Coding Help
Last Post: menator01
Yesterday, 12:39 PM
» Replies: 1
» Views: 122

 
  Windows can't find installed packages
Posted by: TSheets13 - Oct-02-2019, 02:18 PM - Forum: General Coding Help - Replies (7)

I am trying to install some packages to my Windows Python 3.7

I downloaded BeautifulSoup, and then from the Windows cmd prompt, in the directory wh..... More

Print this item

  Combinaison
Posted by: Goodsayan - Oct-02-2019, 02:04 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm new in python. I try to generate combinations of objects and calculate sums to characterize them.
A little confused, so I quickly give ..... More

Print this item

  Understanding program blocks
Posted by: newbieAuggie2019 - Oct-02-2019, 01:45 PM - Forum: General Coding Help - Replies (2)

Hi!

Sorry for bothering you with this probably stupid question, but I can get really stuck with some little non-vital doubts.

If I understand [b..... More

Print this item

  open, read and replace a string in a file
Posted by: Reims - Oct-02-2019, 01:30 PM - Forum: General Coding Help - No Replies

Hi,
i want to read a file, and replace a certain value.

i don t know the exact string value but i know what is before and after this value

for ..... More

Print this item

  Calculating with float
Posted by: TSheets13 - Oct-02-2019, 12:08 PM - Forum: General Coding Help - Replies (1)

This code fails:

import math
r=input("r=")
h=input("h=")
V=math.pi*h*r**2
print (V)
V=math.pi*h*r**2
TypeError: ca..... More

Print this item

  Access to the elements of a dictionnary
Posted by: Reims - Oct-02-2019, 11:44 AM - Forum: General Coding Help - Replies (1)

Hi,
i have the following json file contained in a file named file.conf
and i Need to replace the value of ENDPOINT witn something else


[pytho..... More

Print this item

  Doing calculation with ascii file
Posted by: Mike - Oct-02-2019, 11:09 AM - Forum: General Coding Help - Replies (5)

Hello!
I have file named DATA.TXT which contains:

[output]colA,colB
324,234
346,341
147,346
234,567
368,405
344,643
235,235
236,567[/outpu..... More

Print this item

  Problem with 'and' in 'if' statement
Posted by: CoderMan - Oct-02-2019, 09:14 AM - Forum: General Coding Help - Replies (3)

Hello,

I'm trying to make a function that returns true if a list contains at least one of many predetermined letters in it. The code is as follows:..... More

Print this item

  Too Stupid to Code
Posted by: RazerNismo - Oct-02-2019, 07:01 AM - Forum: Bar - Replies (14)

Look... I'm after a brutally honest view on if people think that coding is for a certain level of education.. Perhaps a problem solving mind or someth..... More

Print this item

  How i can judge my code
Posted by: christing - Oct-02-2019, 04:16 AM - Forum: General Coding Help - Replies (16)

Below is the code i write for confirm my string single position.

the purpose i write the code is i want single confirm my string(111111111110000000..... More

Print this item

  Read data, recognize trends and send report
Posted by: vin0001 - Oct-02-2019, 02:01 AM - Forum: Data Science - Replies (1)

I would like to use Python and Machine learning to read time stamped data set and analyze its trend behaviour to generate a report if any outliers.
..... More

Print this item

  Error could not convert string to float:
Posted by: deadendstreet - Oct-02-2019, 01:06 AM - Forum: Homework - Replies (4)

Hey all,

Ive been working on creating plots and am trying to convert a column that had $4,312.00 as an Object instead of a float or integer.

In ..... More

Print this item

  How to point a subdomain to run applications using virtualenv on ec2 (AWS)
Posted by: JohnnyCoffee - Oct-02-2019, 12:43 AM - Forum: Networking - No Replies

I added an ec2 instance (ubuntu server) in aws, installed python3.7, virtualenvs, pointed ec2's elastic ip to a subdomain, entered virtualenvs and mad..... More

Print this item

  Question
Posted by: pythonprogrammer - Oct-02-2019, 12:09 AM - Forum: General Coding Help - Replies (2)

[python]
Card = collections.namedtuple('Card',['rank','suit'])

class FrenchDeck:
ranks = [str(n) for n in range(2,11)] + list('JQKA')
su..... More

Print this item

  In linear time, find the maximum sum of all possible contiguous subarrays
Posted by: Exsul1 - Oct-01-2019, 11:18 PM - Forum: General Coding Help - Replies (29)

Per an interview question offered as a "question of the day," how would you find, given an array of integers, the maximum sum of all possible contiguo..... More

Print this item

  local variable 'doc' referenced before assignment
Posted by: Kriti - Oct-01-2019, 10:29 PM - Forum: GUI - Replies (3)

Hi All,
I am trying to write the python GUI Code which creates the PDF based on user input and the excel sheet.It takes the user input create the doc..... More

Print this item

  I dont understand bytes in python.
Posted by: blackknite - Oct-01-2019, 10:20 PM - Forum: General Coding Help - Replies (3)

Everything is so confusing here, ie:
[python]>>> z = b'\x93\x39\x02\x49\x83\x02\x82\xf3\x23\xf8\xd3\x13'
>>> list(z)
[147, 57, 2, 73, 131, 2, 130, ..... More

Print this item

  Running multiple Shell with No latency
Posted by: law - Oct-01-2019, 09:48 PM - Forum: General Coding Help - No Replies

Hello Friend,
I recently wrote 6 scripts which are scrapping data from an online site.Each script is different and performs a given task in a certain..... More

Print this item

  DHT11 output to website problem
Posted by: cjdock - Oct-01-2019, 08:29 PM - Forum: General Coding Help - No Replies

Hello folks,
I don't program very much but can usually figure out code issues but no luck with this.
So, I have a raspberry pi and the humidity/temp..... More

Print this item

  comparing integers and fractions
Posted by: tantony - Oct-01-2019, 08:22 PM - Forum: General Coding Help - Replies (3)

I'm writing a script to get data from an aviation website. The problem is that, sometimes the value of 'visibility' could be an integer such as 10, b..... More

Print this item

  How do I make zip() append a value to a key?
Posted by: rm197 - Oct-01-2019, 06:18 PM - Forum: General Coding Help - Replies (1)

I have these two arrays:

arr1 = ['sub1', 'sub1', 'sub2', 'sub1', 'sub1', 'sub2']
[python]arr2 = [1.9 , 2.2 , 9.1 , 7.3 , 4...... More

Print this item

  AttributeError: 'top_block_sptr' object has no attribute 'change_param_1'
Posted by: Hadad - Oct-01-2019, 05:00 PM - Forum: General Coding Help - Replies (2)

In this exercise, I am using a python webserver to change the parameters' values inside my configuration file (.ini file). To do that I have a few wid..... More

Print this item

  Need help urgent
Posted by: fireablade - Oct-01-2019, 05:00 PM - Forum: General Coding Help - Replies (1)

Im trying to run a file, however i keep getting this error

"InstaPy Version: 0.6.4
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use..... More

Print this item

  download from python
Posted by: mpellegrini - Oct-01-2019, 04:18 PM - Forum: Networking - Replies (6)

I'd like to download a file present at follow link

But the follow code python get me the error "HTTPError: Unauthorized":

import urllib.request
url ..... More

Print this item

  How does a single object see all the values inside it?
Posted by: jenniferruurs - Oct-01-2019, 03:56 PM - Forum: General Coding Help - Replies (1)

Bellow I have some code, I was wondering how it is possible that the object root looks like if I have list of object (I expect a single object)

I g..... More

Print this item

  Moving Files
Posted by: Evil_Patrick - Oct-01-2019, 03:54 PM - Forum: General Coding Help - Replies (4)

Newbie Alert

[python]
import os
import glob
import shutil

path = input('Enter folder location: ')
os.chdir(path)

try:
os.makedirs('..... More

Print this item

  Problem in creating a vector
Posted by: termo - Oct-01-2019, 03:38 PM - Forum: General Coding Help - Replies (11)

I need to create a vector A_vec. The code line is:

[python]
self.A_vec = [self.B[0:j], self.B[j] + self.C / self.D, self.B[j+1:len(self.E)]]
[/py..... More

Print this item

  Store data in array
Posted by: kasper1903 - Oct-01-2019, 03:34 PM - Forum: Homework - Replies (4)

Hi guys.

I have some trouble with this code. I want to store my data from a csv into an array - The data consist both of text, dates and numbers. ..... More

Print this item

  get and reuse the token value with huawei modem
Posted by: Reims - Oct-01-2019, 03:28 PM - Forum: General Coding Help - Replies (1)

Hi there,
so i want to read some sms received in my huawei modem.

For that i m tryin to first get the token and session id from the 'http://192.1..... More

Print this item

  Inspect.getmembers with isclass returns an empty list
Posted by: Aldar - Oct-01-2019, 03:20 PM - Forum: General Coding Help - Replies (1)

Hello all!

I am awfully new to this site, but my lack of ideas has brought me here in hope that I might get help in here.

I am making an app, th..... More

Print this item

  Call pip3 from python folder build by me call pip3 from the /usr/bin
Posted by: Suryavarman - Oct-01-2019, 03:14 PM - Forum: General Coding Help - Replies (3)

I have build the latest release of python3 on a Mageia7 system.
Here the configuration command line:
[inline]./configure --prefix=${PY_PATH} --enable..... More

Print this item

  Registering user's drop down menu choice and finding corresponding line in files
Posted by: ShadeLily - Oct-01-2019, 12:56 PM - Forum: GUI - Replies (2)

My program uses three files to store information: "names.txt", "birthdays.txt" and "comments.txt". Every entry is on matching lines.

It gets its in..... More

Print this item

  How to resolve scipy differences?
Posted by: Oliver - Oct-01-2019, 12:54 PM - Forum: Data Science - Replies (2)

In Pycharm, I am importing "import scipy.misc" and the code that calls scipy.misc.comb(...) works fine. The scipy version in Pycharm is 0.19.1...... More

Print this item

  convert sh script to python script
Posted by: Reims - Oct-01-2019, 12:10 PM - Forum: General Coding Help - No Replies

hi, i have a sh script code and need to convert it into python script.
i m struggling finding the correspondant command.


so here is my sh script..... More

Print this item

  y-axis on seaborn heatmap not aligned properly
Posted by: amjass12 - Oct-01-2019, 10:37 AM - Forum: General Coding Help - No Replies

Hi all,

I am having an issue with a heatmap on seaborn when using pycharm (not sure if this is the right forum so apologies if this is the case)
..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to edit Tkinter Minim... 5 minutes ago kucingkembar kucingkembar General Codin...
  using mutable in function... 24 minutes ago akbarza akbarza General Codin...
  Why am I getting this err... 1 hour ago Pedroski55 Pedroski55 General Codin...
  How To Make A PyQt5 Progr... 6 hours ago rcwildabeast menator01 GUI
  ModulNotFoundError matplo... 7 hours ago WicardBohnam deanhystad General Codin...
  Problem Converting Tradin... Yesterday, 19:40 kralxs kralxs General Codin...
  New on python. Needs help... Yesterday, 18:47 jeromep deanhystad General Codin...
  Can provide python tutori... Yesterday, 17:00 Zahiba_Siddiqui carellapansullon Jobs
  Win or Loss Prediction Yesterday, 13:46 ksasi2k3 ksasi2k3 General Codin...
  Good way to ignore case w... Yesterday, 12:39 Winfried menator01 General Codin...
  how to edited Tkinter Top... Yesterday, 10:16 kucingkembar deanhystad General Codin...
Most views
  The best Prog... 413337
  Web Scraping ... 304244
  Tutorial Requ... 293629
  Newbie with P... 251701
  Thread remain... 233958
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7087
deanhystad 6218
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
WillieNelson Today
JoshEdgar Today
pyry Today
WicardBohnam Yesterday
rcwildabeast Yesterday

User Panel Messages

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