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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,461
» Latest member: MichaelSenia
» Forum threads: 38,566
» Forum posts: 174,756

Full Statistics

Online Users
There are currently 499 online users.
» 0 Member(s) | 492 Guest(s)
Yandex, Bing, Discord, Apple, Yandex Images

Latest Threads
Monitor Computer Internal...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 1
» Views: 57
robocopy question
Forum: Bar
Last Post: Amilia
1 hour ago
» Replies: 4
» Views: 1,743
total Noob question: Why ...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 85
Noob programmer - game of...
Forum: Homework
Last Post: russellbeckwith
8 hours ago
» Replies: 4
» Views: 1,417
problems with netcdf if I...
Forum: General Coding Help
Last Post: Larz60+
9 hours ago
» Replies: 5
» Views: 270
How to use isintance with...
Forum: General Coding Help
Last Post: buran
Yesterday, 01:22 PM
» Replies: 3
» Views: 207
Gomoku game problem
Forum: General Coding Help
Last Post: snl_9527
Yesterday, 12:10 AM
» Replies: 6
» Views: 443
500 Internal Server error...
Forum: Web Scraping & Web Development
Last Post: Larz60+
May-07-2025, 05:04 PM
» Replies: 3
» Views: 196
How to put my game loop i...
Forum: Game Development
Last Post: ekaintan1590
May-07-2025, 12:54 PM
» Replies: 8
» Views: 2,086
Text frame
Forum: Homework
Last Post: Larz60+
May-07-2025, 05:47 AM
» Replies: 1
» Views: 141

 
  Python date format changes to date & time
Posted by: 1418 - Jan-14-2024, 03:44 AM - Forum: General Coding Help - Replies (4)

Hi, my original data is short date (15/10/2023) but when I run the below code python changes it to 2023-10-15 00:00:00, how can I prevent this? Cheers..... More

Print this item

  Python code to set column width
Posted by: 1418 - Jan-14-2024, 03:31 AM - Forum: General Coding Help - Replies (11)

Hi, I have tried several codes to set my column widths without success. Is there a simple code similar to VBA I could use?
I would like to add column..... More

Print this item

  File Checksum V2
Posted by: rob101 - Jan-13-2024, 11:21 PM - Forum: Code sharing - No Replies

Announcing version 2 of my 'File Checksum' app, which is a complete rework of the V1 app. As with V1, V2 was developed using the PAGE GUI design appli..... More


Attached Files

Thumbnail(s)
   
Print this item

  List Comprehension Issue
Posted by: johnywhy - Jan-13-2024, 09:59 PM - Forum: General Coding Help - Replies (5)

This works:
[code]choices = 'a', 'b', 'c'
menu = ""

for idx, choice in enumerate(choices):
menu += "\t".join((str(idx), choice, '\n'))

print..... More

Print this item

  Receive Input on Same Line?
Posted by: johnywhy - Jan-13-2024, 09:24 PM - Forum: General Coding Help - Replies (8)

How to receive input on the same line, without clearing the rest of the terminal?

The following prints a new "Enter" line for every bad entry.

..... More

Print this item

  Tab Delimited Strings?
Posted by: johnywhy - Jan-13-2024, 08:47 PM - Forum: General Coding Help - Replies (7)

the following tab-delimits each item

print ("a", "b")
a	b
Is there an equally simple way to build a tab-delimited string, aside from pr..... More

Print this item

  Append inside for?
Posted by: johnywhy - Jan-13-2024, 06:46 PM - Forum: General Coding Help - Replies (10)

This works:

opts1 = []
for idx, choice in enumerate(choices):
	 opts1.append (str(idx))
And this works:

[code]menu = ""
for i..... More

Print this item

  Power Shells vs Compile and Run programs?
Posted by: RockBlok - Jan-13-2024, 05:11 PM - Forum: General Coding Help - Replies (2)

Good morning,

I decided to take a crack at the edx machine learning course, and I had a question about how to approach writing the code.

They se..... More

Print this item

  Regarding pdf for PCEP and PCAP certification
Posted by: P212 - Jan-13-2024, 03:57 PM - Forum: News and Discussions - No Replies

Hi,

I went through this link -https://edube.org/study for PCEP certification exam preparation, but i want this study matarial in a pr..... More

Print this item

  How should I process this data?
Posted by: SuchUmami - Jan-13-2024, 10:55 AM - Forum: General Coding Help - Replies (2)

I don't need coding help but I would really appreciate some ideas about how to tackle this problem.

I have this dataset:

[img]https://i.imgur.co..... More

Print this item

  Text conversion to lowercase is not working
Posted by: ineuw - Jan-13-2024, 10:53 AM - Forum: General Coding Help - Replies (3)

I am trying to change text which contain these capitalized words surrounded by space. But this Autokey script is not working. Can someone point out wh..... More

Print this item

  websocket help
Posted by: johnbob - Jan-13-2024, 06:32 AM - Forum: Networking - Replies (2)

hello every one
i want connect to pocket option broker with its websocket and send and get data for example get OTC market candle data.
when i conn..... More

Print this item

  Passing writable arguments to functions.
Posted by: Assembler - Jan-12-2024, 09:19 PM - Forum: General Coding Help - Replies (11)

Sorry for beating so fundamental a question into the ground, but as a FORTRAN programmer, I feel pain with python functions.

Consider the function ..... More

Print this item

  connect sql by python using txt. file
Posted by: dawid294 - Jan-12-2024, 09:19 AM - Forum: General Coding Help - Replies (2)

Hi python experts i do not know what i do wrong , I would like connect to sql by python using txt.file , Where i do a mistake? or is possible connect ..... More

Print this item

  data validation with specific regular expression
Posted by: shaheen07 - Jan-12-2024, 06:07 AM - Forum: General Coding Help - No Replies

This post is to find a way to check if data matches with specific regular expression

[python]import pandas as pd
# Create first data frame
df1 ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Problem with calculation of market data
Posted by: MrQuant1 - Jan-12-2024, 12:38 AM - Forum: Data Science - No Replies

Hello dear forum, my first post here.

I'm currently stuck and have been working on the same problem for days.

I am currently writing a code that..... More

Print this item

  Im at square one even with trying to install python
Posted by: origen - Jan-12-2024, 12:01 AM - Forum: General Coding Help - Replies (1)

Ok I just registared here so Im at square one even with trying to install python
I did the downloads but don't see how to install

anyway, looking..... More


Attached Files

Thumbnail(s)
   
Print this item

  writing and running code in vscode without saving it
Posted by: akbarza - Jan-11-2024, 11:55 AM - Forum: General Coding Help - Replies (5)

hi
I want to write some code in vs code and then run it without saving the code in any place. is it possible?
if it is possible, how can I do it?
f..... More

Print this item

  question about __repr__ in a class
Posted by: akbarza - Jan-11-2024, 11:36 AM - Forum: General Coding Help - Replies (4)

hi
the below code is in:https://rea[url=https://python-forum.io/thread-41407.html]..... More

Print this item

  Why can't I copy and past only ONE specific tab?
Posted by: NewWorldRonin - Jan-10-2024, 05:50 PM - Forum: General Coding Help - Replies (8)

Hello,
This is my first post, be gentle. :)

I am an expert Excel user who is now venturing into Python in an effort to automate "the boring stuff"..... More

Print this item

  This result object does not return rows. It has been closed automatically
Posted by: dawid294 - Jan-10-2024, 04:52 PM - Forum: General Coding Help - Replies (5)

Hi colleagues, Can you help me with this? I know that here are the most of discussion about this problem, but i can not solve it. I red that i have to..... More

Print this item

  Variable definitions inside loop / could be better?
Posted by: gugarciap - Jan-09-2024, 09:36 PM - Forum: General Coding Help - Replies (2)

Dear Python Community,

I use Python a lot for my company projects, and I ussually do some taslks that seems to
repeats every time. For instance,I..... More

Print this item

  Call for Speakers for the 2024 Carolina Code Conference is open until April 15th
Posted by: brightball - Jan-09-2024, 06:57 PM - Forum: News and Discussions - No Replies

A polyglot conference for all who code!

Just wanted to drop by and let everyone know that our Call for Speakers has opened for 2024. We're growing ..... More

Print this item

  run part of a script with a different version of Python
Posted by: jdog - Jan-09-2024, 02:20 PM - Forum: General Coding Help - Replies (3)

In my work environment, I have very little leeway with my the software configuration. I concurrently use two versions of python: a 2.xx version to acc..... More

Print this item

  Parsing large JSON
Posted by: josvink66 - Jan-09-2024, 11:46 AM - Forum: General Coding Help - Replies (5)

Hi!

I'm am very new to Python but love playing with it. What I want to accomplice is to get the content of the following JSON url: https://raw.gith..... More

Print this item

  I am getting an error while finding the moving_average_of_peaks
Posted by: sayedsadat - Jan-08-2024, 11:26 PM - Forum: News and Discussions - Replies (1)

Hello Guys! Smile
firstly I would like to say happy new year to all of you,
secondly, its a few days which the following code makes me busy, ..... More

Print this item

  If statement question help
Posted by: Gatso100 - Jan-08-2024, 06:00 PM - Forum: Homework - Replies (5)

Hi guys,

New to this forum and to the programming language. I was hoping someone could help me out with he following task I have been given. Belo..... More

Print this item

  Unit Testing Set Up and Use
Posted by: RockBlok - Jan-08-2024, 05:17 PM - Forum: General Coding Help - Replies (2)

Hello again,

I found the unittest documentation and put together this simple scenario based on a tutorial I'm working through.

My question: Is i..... More

Print this item

  Writing a Linear Search algorithm - malformed string representation
Posted by: Drone4four - Jan-08-2024, 01:28 PM - Forum: General Coding Help - Replies (10)

I am writing a linear search algorithm. I've got the main logic under my belt but it's the string representation that I haven't got right. Below is my..... More

Print this item

  use .sql instead of script
Posted by: dawid294 - Jan-08-2024, 12:09 PM - Forum: General Coding Help - No Replies

Hi, I have one question , is possible to replace one thing on the script . I have the script. It works good, but i would like use text.sql intead of ..... More

Print this item

  Building a DoublyLinkedList in Python - - append method
Posted by: Drone4four - Jan-08-2024, 10:42 AM - Forum: General Coding Help - Replies (2)

Greetings Pythonistas!

I am learning how to write basic algorithms in Python but am taking an unusual approach. I am taking a Udemy course which te..... More

Print this item

  Works first time, not second time, no code changes in between
Posted by: m_g - Jan-08-2024, 01:24 AM - Forum: Homework - Replies (1)

Hi! Python beginner here.
In the screenshot, you can see me execute the same command twice in a row. The first time it works like it's supposed to, ..... More


Attached Files

Thumbnail(s)
   
Print this item

  question about descriptor
Posted by: akbarza - Jan-07-2024, 11:54 AM - Forum: General Coding Help - Replies (5)

hi
the below code is in :https://docs.python.org/3/howto/descriptor.html

[python]impor..... More

Print this item

  problem using coloeama module
Posted by: akbarza - Jan-07-2024, 11:40 AM - Forum: General Coding Help - Replies (3)

hi
the bellow code:
[python]'''
colorama usage.
from net has been taken.
'''

from colorama import Fore
print(Fore.YELLOW+" hello,world")
pri..... More

Print this item

  Remove part of the code
Posted by: hack3rcon - Jan-06-2024, 11:18 AM - Forum: General Coding Help - Replies (5)

Hello,
The following code checks both the username and the MAC address:
[python]
#!/usr/bin/python3

import re
import sys


db_file = '/etc/o..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Monitor Computer Internal... 1 hour ago EdMcCauley deanhystad General Codin...
  robocopy question 1 hour ago DPaul Amilia Bar
  total Noob question: Why ... 2 hours ago MarkMan deanhystad General Codin...
  Noob programmer - game of... 8 hours ago Dazzalac russellbeckwith Homework
  problems with netcdf if I... 9 hours ago Blaubart Larz60+ General Codin...
  How to use isintance with... Yesterday, 13:22 Azdaghost buran General Codin...
  Gomoku game problem Yesterday, 00:10 snl_9527 snl_9527 General Codin...
  500 Internal Server error... 05-07, 17:04 ppowell777 Larz60+ Web Scraping ...
  How to put my game loop i... 05-07, 12:54 temlotresid6 ekaintan1590 Game Developm...
  Text frame 05-07, 05:47 dnabtuh Larz60+ Homework
  tkinter only storing last... 05-06, 23:54 bertschj1 deanhystad General Codin...
Most views
  The best Prog... 560705
  Tutorial Requ... 437271
  Web Scraping ... 425907
  Newbie with P... 357175
  Thread remain... 330386
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12044
buran 8168
snippsat 7324
deanhystad 6821
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
MichaelSenia Today
Amilia Today
EdMcCauley Today
bonaven Today
MarkMan Today

User Panel Messages

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