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,599
» Latest member: suvechha
» Forum threads: 37,372
» Forum posts: 169,833

Full Statistics

Online Users
There are currently 526 online users.
» 0 Member(s) | 518 Guest(s)
Google, Apple, Yandex, Bing, Baidu, AOL, Facebook

Latest Threads
Converting py to exe
Forum: General Coding Help
Last Post: WiPi
19 minutes ago
» Replies: 4
» Views: 354
yield from
Forum: General Coding Help
Last Post: Larz60+
24 minutes ago
» Replies: 1
» Views: 24
questions about dict.get
Forum: General Coding Help
Last Post: Larz60+
47 minutes ago
» Replies: 1
» Views: 51
The *Best Python Cheat Sh...
Forum: Tutorial Requests and Submissions
Last Post: Annaat20
1 hour ago
» Replies: 1
» Views: 181
convert to bin problem
Forum: General Coding Help
Last Post: kucingkembar
3 hours ago
» Replies: 2
» Views: 85
Waiting screen until user...
Forum: Game Development
Last Post: attractalderman
5 hours ago
» Replies: 2
» Views: 914
Help with writing monitor...
Forum: General Coding Help
Last Post: deanhystad
11 hours ago
» Replies: 3
» Views: 175
Cloud computing advice ne...
Forum: Data Science
Last Post: sawtooth500
11 hours ago
» Replies: 3
» Views: 140
MemoryError in pywinauto....
Forum: General Coding Help
Last Post: itegumo
Yesterday, 04:28 PM
» Replies: 1
» Views: 252
Adding a sub menu to a tt...
Forum: GUI
Last Post: deanhystad
Yesterday, 12:37 PM
» Replies: 5
» Views: 201

 
  TypeError: can't multiply sequence by non-int of type 'str'
Posted by: rregorr - Jun-28-2019, 04:13 PM - Forum: General Coding Help - Replies (2)

I am using the follow code to calculate the hypotenuse and legs of a rectangle triangle. If any one of the 3 given values(a, b ou c) is "x", it would ..... More

Print this item

  string formatting
Posted by: Uchikago - Jun-28-2019, 03:17 PM - Forum: General Coding Help - Replies (1)

Hi, i want to ask that when using string formatting:

>>> b={1:'a','1':'c'}
>>> print('%(1)s abcd' % b)
c abcd
How can we refer to..... More

Print this item

  Problem with regexs and arrays
Posted by: JoJolM - Jun-28-2019, 01:29 PM - Forum: General Coding Help - Replies (1)

I was wondering if someone could help me understand this line of code
[python]self.lang_config[lang][x][str(i)]['re'] = (
r..... More

Print this item

  Unable to install packages
Posted by: vtechzbi - Jun-28-2019, 12:49 PM - Forum: News and Discussions - Replies (3)

Hi, I am pretty new to Python.

Installed default Python from Python.org since I cannot install other IDE in my office laptop. Installation is succe..... More

Print this item

  converting array to and from string in python 3.7.2
Posted by: srm - Jun-28-2019, 11:01 AM - Forum: General Coding Help - Replies (5)

I am not able to convert array to string using fromstring() method
my code is:
[python]from array import *
my_char_array = array('c', ['g','e','e',..... More

Print this item

  Line Index
Posted by: smabubakkar - Jun-28-2019, 09:46 AM - Forum: GUI - Replies (1)

How to get index of Line number where the cusror is present? I am using bind to call a function, i need to pass the function the index of the line

Print this item

  getting options from a html form
Posted by: pgoosen - Jun-28-2019, 06:50 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi, I have the following code in short, I want to use the <==> from op in my if statement.

[html]
<SELECT NAME=op>
<OPTION VALUE="<">Lesser then<..... More

Print this item

  API Call Gets 404 Error
Posted by: jimbone30 - Jun-28-2019, 04:06 AM - Forum: General Coding Help - No Replies

Trying to leverage an API call to build out a new workflow.
Trying to leverage ..... More

Print this item

  string slicing
Posted by: Uchikago - Jun-28-2019, 03:01 AM - Forum: General Coding Help - Replies (2)

Hi, i just want to ask what is the default begining point and the ending point of a slice with negative step like this

[python]X='123456789'
print..... More

Print this item

  Syntax Error EOL while scanning string literal
Posted by: intjuma - Jun-28-2019, 01:56 AM - Forum: General Coding Help - No Replies

I am having an issue running my instapy from Github. I was running ok earlier and now it giving me all sorts of errors from Line 1 to the bottom. I ca..... More

Print this item

  Need help executing a program
Posted by: 1234kevind - Jun-28-2019, 01:32 AM - Forum: General Coding Help - Replies (2)

Hello,

I'm new to python and would love to get some help to run some python executable. I got some instructions from another forum on how to downlo..... More

Print this item

  Need help with a homework problem on logical operators
Posted by: voodoo - Jun-27-2019, 11:27 PM - Forum: Homework - Replies (3)

I'm having a hard time getting this formula right.

My attempts are under the line of code that says "#Write your code here!" Any suggestions?

..... More

Print this item

  why does my python request cannot work with proxy and cannot get captured by fiddler
Posted by: szhangpy - Jun-27-2019, 10:48 PM - Forum: General Coding Help - No Replies

why does my python request cannot work with proxy and cannot get captured by fiddler?
[python]import urllib.request

proxy= 'https://94.131.116.141..... More

Print this item

  Preprocess script
Posted by: Saszalez - Jun-27-2019, 10:22 PM - Forum: General Coding Help - Replies (2)

Hi all.

I'm using Python to process climate data and use it in a weather model. To do this, there was a script in Python2, which I modified to adap..... More

Print this item

  Unicode error
Posted by: deedeed - Jun-27-2019, 09:08 PM - Forum: General Coding Help - Replies (5)

I was looking for a python script that will convert hst fils to csv and found it at
https://github.com/nigelsim/mt4reader

Just added file names to..... More

Print this item

  [nltk] Relations Extractor
Posted by: constantin01 - Jun-27-2019, 07:35 PM - Forum: Data Science - Replies (3)

Hello

I use nltk.sem.relextract to extract relations in text. I have a problem.

What I do:

1. Tools:

[python]
import nltk
import re
fr..... More

Print this item

  Could anyone help me get the jaccard distance between my dataframes please? :)
Posted by: a_real_phoenix - Jun-27-2019, 05:58 PM - Forum: Data Science - No Replies

Hi there, I'm doing a piece of homework and I'm almost done, but the last part has me pretty stumped. I have four files to work with, and I have to ge..... More

Print this item

  Importing -
Posted by: sumncguy - Jun-27-2019, 05:52 PM - Forum: General Coding Help - Replies (2)

Im not sure that I will be able to get this question answered. I am trying to pick apart a home group module they are using at work and I have run int..... More

Print this item

  python cache for small integer
Posted by: Uchikago - Jun-27-2019, 04:30 PM - Forum: General Coding Help - Replies (1)

I know there is a cache to hold for small integers [-5,256] but when i try to get reference count for a big number like:
[python]>>> import sys
>>>..... More

Print this item

  Collecting Output from Pexpect
Posted by: gw1500se - Jun-27-2019, 04:20 PM - Forum: General Coding Help - Replies (3)

I'm using pexpect to provide login information for a long running command. That part is working. However, I then want to display the output from that ..... More

Print this item

  Filling an Excel file
Posted by: starter_student - Jun-27-2019, 02:50 PM - Forum: General Coding Help - Replies (3)

I have an Excel file ... name, description, scope (column scope is fast empty)
and I want to assign a "code" (0, 1, 2 and 3) in each row of the scope..... More

Print this item

  Escape sequences display in python
Posted by: Uchikago - Jun-27-2019, 02:49 PM - Forum: General Coding Help - Replies (1)

Can you guys explain why both \n and \b are escape sequences but why \n displays as '\n' but \b displays as '\x08'
[python]>>> '\n'
'\n'
>>> '\b'
'\x0..... More

Print this item

  Correlation of Incidents using time difference
Posted by: Rajhesh - Jun-27-2019, 02:36 PM - Forum: General Coding Help - Replies (1)

Hi All,

I'm a newbee in Python. Mostly I need to handle files. Lets say, I have a data dump which has records of Incidents for many nodes. A si..... More

Print this item

  help with simple LOGIN code
Posted by: pedrosa06 - Jun-27-2019, 01:45 PM - Forum: General Coding Help - Replies (3)

[b][i][/b][/i]


Hello, the code is the following:
[python]
# -*- coding: latin-1 -*-

def login():
user_incorreto = False..... More

Print this item

  Python start from a specific string line and write?
Posted by: searching1 - Jun-27-2019, 01:04 PM - Forum: General Coding Help - Replies (1)

I want to match a specific string and once match start writing the next line after after the matched string.

from output save in x variable I want ..... More

Print this item

  pandas library tricks
Posted by: metulburr - Jun-27-2019, 01:00 PM - Forum: Web Scraping & Web Development - Replies (7)

I have obviously never used the pandas library

Based on this answ..... More

Print this item

  Changing Data Types
Posted by: BallisticSwami - Jun-27-2019, 11:59 AM - Forum: General Coding Help - Replies (2)

I am writing a program to change the given data type.
Here is my code:
[python]a = input("Type the data which you would like to convert: ")
dtype = in..... More

Print this item

  Managing variables accross a multiple module GUI
Posted by: Oolongtea - Jun-27-2019, 10:47 AM - Forum: GUI - Replies (18)

I would like to know what are the best practices to manage variables in a complex application (ie multiple windows/menus/forms etc). I am relatively n..... More

Print this item

  table from wikipedia
Posted by: flow50 - Jun-27-2019, 10:31 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi,
I’m a newbie in programming and web scraping.

I got this assignment:

[quote]wikipedia web site: ..... More

Print this item

  capture logs on specific port
Posted by: anna - Jun-27-2019, 08:08 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have one application, sending logs on udp 25038 port towards my server. Is there any way to capture those logs and store in DB. Which mod..... More

Print this item

  Require scroll bars horizontal and vertical throughout the window
Posted by: tejgandhi - Jun-27-2019, 06:39 AM - Forum: GUI - Replies (2)

Hello All,

When I try to create scroll bars,horizontal and vertical utilizing
grid I get them for particular row and particular column I wanted sc..... More

Print this item

  Import Python Modules
Posted by: zowhair - Jun-27-2019, 05:53 AM - Forum: General Coding Help - Replies (4)

I am working to make a pyhton web framework, I make a package and installed that, and the main directory is in
venv/lib/python3.6/site-packages/[b]m..... More

Print this item

  Removing window borders
Posted by: DT2000 - Jun-27-2019, 01:44 AM - Forum: GUI - Replies (1)

Is there a way to have a borderless window in tkinter but keep the title bar? If overrideredirect(1)' is used it removes all including the title bar. ..... More

Print this item

  Lost in choosing how to make an graphic interface
Posted by: TheGuyUnknown - Jun-27-2019, 01:06 AM - Forum: News and Discussions - Replies (3)

Hello everybody, as a novice in python coding (i've been on C++ for the past few years), i would like to create a program that can simulate a trajecto..... More

Print this item

  Unable to identify Tuple index error
Posted by: appmkl - Jun-26-2019, 09:30 PM - Forum: Data Science - Replies (4)

Hello !
I've been wanting to create a DCGAN following this tutorial.
I've got the whole thing up and running on GCP, with my own image dataset (tryi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Converting py to exe 19 minutes ago WiPi WiPi General Codin...
  yield from 24 minutes ago akbarza Larz60+ General Codin...
  questions about dict.get 47 minutes ago akbarza Larz60+ General Codin...
  The *Best Python Cheat Sh... 1 hour ago kmh Annaat20 Tutorial Requ...
  convert to bin problem 3 hours ago kucingkembar kucingkembar General Codin...
  [PyGame] Waiting screen u... 5 hours ago world90 attractalderman Game Developm...
  Help with writing monitor... 11 hours ago donottrackmymetadata deanhystad General Codin...
  Cloud computing advice ne... 11 hours ago sawtooth500 sawtooth500 Data Science
  MemoryError in pywinauto.... Yesterday, 16:28 ktw3857 itegumo General Codin...
  Adding a sub menu to a tt... Yesterday, 12:37 Robo deanhystad GUI
  measure diameter of compl... Yesterday, 10:20 alminnawi alminnawi General Codin...
Most views
  The best Prog... 399443
  Web Scraping ... 291585
  Tutorial Requ... 284726
  Newbie with P... 244276
  New Users Int... 228752
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+ 11872
buran 8088
snippsat 7080
deanhystad 6196
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
suvechha Today
nebeolisa Today
ganeshbraj Yesterday
Jaime Yesterday
itegumo Yesterday

User Panel Messages

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