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,654
» Latest member: JoshEdgar
» Forum threads: 37,398
» Forum posts: 169,949

Full Statistics

Online Users
There are currently 375 online users.
» 2 Member(s) | 368 Guest(s)
Bing, Baidu, Google, Facebook, Yandex, Yoriz, buran

Latest Threads
How To Make A PyQt5 Progr...
Forum: GUI
Last Post: menator01
4 hours ago
» Replies: 1
» Views: 84
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 1
» Views: 61
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
11 hours ago
» Replies: 0
» Views: 84
New on python. Needs help...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:47 PM
» Replies: 1
» Views: 95
Can provide python tutori...
Forum: Jobs
Last Post: carellapansullon
Yesterday, 05:00 PM
» Replies: 1
» Views: 191
Win or Loss Prediction
Forum: General Coding Help
Last Post: ksasi2k3
Yesterday, 01:46 PM
» Replies: 4
» Views: 188
Good way to ignore case w...
Forum: General Coding Help
Last Post: menator01
Yesterday, 12:39 PM
» Replies: 1
» Views: 117
how to edited Tkinter Top...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:16 AM
» Replies: 7
» Views: 193
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:10 AM
» Replies: 1
» Views: 137
Cucumber installation
Forum: General Coding Help
Last Post: SandraYokum
Yesterday, 07:52 AM
» Replies: 2
» Views: 129

 
  a range of lines in a file
Posted by: Skaperen - Apr-19-2020, 01:24 AM - Forum: News and Discussions - No Replies

would it be reasonably natural to specify a range on lines in a file (in a function or method call, or on the command line of a script) in the same wa..... More

Print this item

  Problems with if / else statement
Posted by: droid206 - Apr-19-2020, 12:44 AM - Forum: General Coding Help - Replies (6)

Below is my example code with what I am having trouble with. I can not figure out how to make it when you input t to make it print what 't' equals eve..... More

Print this item

  TypeError: list indices must be integers or slices, not float
Posted by: hissonrr - Apr-18-2020, 10:42 PM - Forum: General Coding Help - Replies (2)

I'm very very new to python, any idea what I am doing wrong here?

[python]
#Now we label and color our facies
# 1=Mudstone_Org_Si 2=Mudstone_Org..... More

Print this item

  How can import variable beteen classes in same module
Posted by: johnjh - Apr-18-2020, 09:27 PM - Forum: GUI - Replies (1)

I need to import this path variable from first class to another classes, this is my code:

[python]

import openpyxl

class Excell():
..... More

Print this item

  DataFrame
Posted by: jma23 - Apr-18-2020, 09:21 PM - Forum: Data Science - No Replies

Hello,


i want to create the dataframe more elegantly - how can this be done?


[python]df = pd.DataFrame({'itemID' : [],'date' : []})
for n i..... More

Print this item

  Date entry in box format issue
Posted by: PeroPuri - Apr-18-2020, 08:03 PM - Forum: GUI - Replies (6)

Hi everyone,
I've found this code to enter the date and that I'd like to use in tkinter but I'm having several issue:
[python]import tkinter as tk..... More

Print this item

  Creating a restart button for a Pythagorean Theorem Program
Posted by: pav1983 - Apr-18-2020, 07:59 PM - Forum: GUI - Replies (12)

Hi All,

This is my first post on this forum. I'm really excited to be a part of this community. What I'm trying to do here is I'm trying to make a ..... More

Print this item

  Making a duty roster
Posted by: test - Apr-18-2020, 07:57 PM - Forum: General Coding Help - Replies (4)

Hello!
I had started this project thinking it was relatively straight-forward. However, I hit several road-blocks along the way and the program kept ..... More

Print this item

  ınput-output HELP!
Posted by: bwdu - Apr-18-2020, 06:43 PM - Forum: General Coding Help - Replies (1)

Hi everybody!
In the code below ı M trying to write a program, that takes an integer n as command-line argument, reads
in n − 1 distinct integers be..... More

Print this item

  invalid syntax on Python 3.8.2
Posted by: REN - Apr-18-2020, 06:04 PM - Forum: News and Discussions - Replies (7)

Hello. My Terminal cannot execute what I write on IDLE.
The input was very simple.
x="hello"
print(x)

What do I have to do on Python 3.8.2 with ..... More

Print this item

  Unable to get current contents of the entry field where the content is the file path
Posted by: pmpinaki - Apr-18-2020, 06:02 PM - Forum: GUI - Replies (1)

My intention , allow user to select a file from the file explorer by clicking a button on Tkinter window application. I handled this button command us..... More

Print this item

  Using ROOT and opening TCanvas
Posted by: jj15g - Apr-18-2020, 05:41 PM - Forum: General Coding Help - Replies (1)

I'm creating a program to make some histograms from a datafile. I'm not sure how to use ROOT for this. This is my code

[python]#! /usr/bin/env pyth..... More

Print this item

  How to get a new line
Posted by: Calli - Apr-18-2020, 05:13 PM - Forum: Web Scraping & Web Development - Replies (2)

After scrapping the website everything works like expected here is the code
[python]
#!/usr/bin/python

import urllib2
from bs4 import BeautifulS..... More

Print this item

  Understand list comprehension and draw
Posted by: PUP280 - Apr-18-2020, 05:07 PM - Forum: General Coding Help - Replies (9)

Hello,

I'm a beginner and I try a lot of things with list comprehension to understand it. Considering that, I don't understand some things.

Firs..... More

Print this item

  Particle Physics and some for loops (ROOT required)
Posted by: jj15g - Apr-18-2020, 05:06 PM - Forum: General Coding Help - No Replies

Hello I'm working with a data file in the following format:

[output]4
1 0 0.000e+00 0.00000e+00 5.00000e+00 5.00000+00
8 1 2.842390e-01 -1.81830..... More

Print this item

  Measurement UI - Browser-based or GUI
Posted by: daneel42 - Apr-18-2020, 04:49 PM - Forum: GUI - No Replies

I need some suggestions and advice on what systems/framework to use to build a measurememt app/program.

sorry for the basic question, but this is m..... More

Print this item

  Throwing an error
Posted by: Nevalle - Apr-18-2020, 03:21 PM - Forum: Homework - Replies (2)

Hey all, This was a past homework assignment that I just wanted to get clarification on in regards to my code.
The program is suppose to roll 2 dice,..... More

Print this item

  TypeError: a bytes-like object is required, not 'str'.
Posted by: jacklee26 - Apr-18-2020, 03:18 PM - Forum: General Coding Help - Replies (4)

Do anyone know how to convert the byte to str. I used below code work on python2 but if I used python3 it will occur Error like this:
[color=#E74C3C]..... More

Print this item

  Extracting Text in a canvas using chain actions
Posted by: law - Apr-18-2020, 01:55 PM - Forum: Web Scraping & Web Development - Replies (3)

I'm Automating a site which has a canvas inside an Iframe. Have been able to navigate through the canvas and click on buttons using chain actions.
[p..... More

Print this item

  Inserting input into Word doc bookmark
Posted by: shappaeye - Apr-18-2020, 01:43 PM - Forum: General Coding Help - Replies (2)

Hey all,

I have a python script which asks for values from the user in a GUI in Windows, when the values are input, I want them to be placed in a b..... More

Print this item

  [split] Tutorial Requests
Posted by: ravulaajith - Apr-18-2020, 01:31 PM - Forum: Homework - Replies (8)

Hi I am new to python programming. I have to submit an assignment to be submitted. I am trying for the coding part for the past one week. I am not at..... More

Print this item

  Help: Dockable widget
Posted by: mart79 - Apr-18-2020, 01:25 PM - Forum: GUI - No Replies

I have a small GUI that has multiple group boxes (see below code).
Group box 1 (Named: Example 1) can be made visible or hidden using the menu.
How..... More

Print this item

  numpy.float64 object is not iterable
Posted by: jcdr91 - Apr-18-2020, 01:18 PM - Forum: Data Science - Replies (1)

Hi all,

I am a newbie in Python, trying out various ways to play around with Python, i am currently using version 3.7, I am trying to tweak a code ..... More

Print this item

  pip install pyinstaller
Posted by: Henalds - Apr-18-2020, 11:33 AM - Forum: General Coding Help - No Replies

I am trying to install Pyinstaller 3.6 using Pip 20.0.2 with Python 3.7.4 in an Anaconda3 environment but it always says it cant find the setuptools d..... More

Print this item

  Class Improvement
Posted by: Gokberk - Apr-18-2020, 09:58 AM - Forum: Code Review - Replies (4)

In this code, I just try to get data from user about animal nutrition, respiratory, excretory and reproductive. Then, I put these animal data class by..... More

Print this item

  What is error: "TypeError: 'module' object is not callable"
Posted by: phutran - Apr-18-2020, 08:37 AM - Forum: Networking - Replies (3)

[python]import getpass
import sys
import telnetlib
HOST = input("Enter device IP: ")
user = input("Enter your telnet user: ")
password = getpass...... More

Print this item

  Delete all contents of a file from the fifth line?
Posted by: PythonNPC - Apr-18-2020, 08:18 AM - Forum: General Coding Help - Replies (1)

Hello,

I want to delete all the contents of the file from under the fifth line.

Is this doable?
I don't want to just print the file on the cons..... More

Print this item

  average aggregate function
Posted by: winya - Apr-18-2020, 06:46 AM - Forum: Data Science - Replies (3)

How to find average aggregate function for two classifier using method in python?

Print this item

  Passing arguments into function, tkinter
Posted by: nanok66 - Apr-18-2020, 06:21 AM - Forum: GUI - Replies (3)

Hey folks,
I've got a very limited understanding of how to pass information through a function. I have a tkinter page with multiple buttons. (Jus..... More

Print this item

  How to assess elapsed time to execute a .exe file or opening a desktop application?
Posted by: Sudershan - Apr-18-2020, 01:59 AM - Forum: General Coding Help - Replies (2)

I used following code but not got any success. It is not providing the elapsed time to open the pdf file. Please help with suitable code. I am using p..... More

Print this item

  i want to create my own file-like object
Posted by: Skaperen - Apr-17-2020, 11:47 PM - Forum: News and Discussions - No Replies

i want to create my own file-like object that behaves by renaming a file to be written to append a unique temporary string to the created name and on ..... More

Print this item

  tkinter How to pass label fiilename to another module?
Posted by: johnjh - Apr-17-2020, 11:34 PM - Forum: GUI - No Replies

This is work fine if I pass entry but I don't understand how to do it in label filename.
this is same example to pass entry to another function https..... More

Print this item

  For loops in python
Posted by: Boinbo - Apr-17-2020, 11:27 PM - Forum: General Coding Help - Replies (3)

Hey guys! So, I am a new person to these forums, and I am learning python right now. Currently, I'm learning about for loops, but I'm not super sure o..... More

Print this item

  fft calculation from csv file
Posted by: mohammedtaha - Apr-17-2020, 10:59 PM - Forum: Data Science - Replies (4)

hello i want to calculate fft of a sinusoid that i get from a csv file, i tried the fft function, but the specter that i found is not the one that i e..... More

Print this item

  create function let_to_num()
Posted by: al_Czervik - Apr-17-2020, 10:19 PM - Forum: General Coding Help - Replies (2)

In my assignment I have to convert a number to letter using a list. I've been able to do this except I'm stuck on the bonus question. When the input i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How To Make A PyQt5 Progr... 4 hours ago rcwildabeast menator01 GUI
  ModulNotFoundError matplo... 5 hours ago WicardBohnam deanhystad General Codin...
  Problem Converting Tradin... 11 hours ago 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...
  using mutable in function... Yesterday, 10:10 akbarza snippsat General Codin...
  Cucumber installation Yesterday, 07:52 SDS SandraYokum General Codin...
  if else statements Yesterday, 07:27 remy DeaD_EyE General Codin...
Most views
  The best Prog... 413217
  Web Scraping ... 304153
  Tutorial Requ... 293534
  Newbie with P... 251623
  Thread remain... 233856
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
JoshEdgar Today
pyry Today
WicardBohnam Yesterday
rcwildabeast Yesterday
tuctboh Yesterday

User Panel Messages

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