r/PythonProgramming • • Nov 26 '25

Getting the name out there for a new Python coding game called Typhon Bot vs Bot

5 Upvotes

Hello everybody,

I'm Alex and this is the Python coding game I have been working on with a team. It's a sci-fi strategy game where players need to write code to control mechs and complete missions.

The difficulty level ranges and it progresses from the first missions to the last. I think it can be a challenge and really fun.

It's available in early access on Steam and GOG, so.... if you want to have a look, you'll find it easily.

https://store.steampowered.com/app/2362580/Typhon_Bot_vs_Bot/

I'm here if you have any questions!


r/PythonProgramming • • Feb 21 '18

Code the blocks - interactive Python tutorial based on a 3D world where you place blocks programmatically

Thumbnail
codetheblocks.com
3 Upvotes

r/PythonProgramming • • Sep 30 '24

Pulling and Displaying COM port data

1 Upvotes

As the title suggests, I am trying to put together an app to display com port data.

  1. I already have the GUI done, with Label Widgets.

  2. I have a com port listener as a separate module.

  3. Every attempt I make leads to the printing of the data in the console.

  4. I am using a retail scanner to simulate a com port transaction

How do I add the data to my existing Label widget?


r/PythonProgramming • • Oct 01 '24

What's Your Biggest Challenge or Frustration with Writing Tests and Pytest?

2 Upvotes

When it comes to writing tests and Pytest, what's your biggest challenge or frustration?


r/PythonProgramming • • Sep 26 '24

Can’t respond to my code

1 Upvotes

In my programming 1 course, we use a online python website and it seems to work in class however, whenever I try to code on my personal laptop I’m never able to respond back to my code.. any help? It’s causing missing assignments


r/PythonProgramming • • Jun 17 '24

python programming open for posts!

2 Upvotes

r/PythonProgramming • • Mar 16 '18

python help! dictionary for cinema

2 Upvotes

d={}

d["movieA"] = [9, 11, 15, 21] d["movieB"] = [10, 14,16]
d["movieC"] = [11, 13,19,20,21,22]

movies= str(raw_input("For Example,'movieA', Enter a Movie: ")) time= eval(raw_input("Enter the time: "))

if d[movies] == d[time]: print(d[time] +1) elif d[movies] != d[time]: print("its not avalible")

the user input movieB and current time 13 and the program output 14. dictionary will store the names of movies and for each movie the dictionary will contain list showing time. The program should alert movie not movie found and show when times for movie not available


r/PythonProgramming • • Nov 02 '17

Awesome Tutorial on Object-Oriented Programming in Python.

Thumbnail
coolpythoncodes.com
4 Upvotes

r/PythonProgramming • • Sep 16 '17

Come Check out my Youtube Channel about Python and Java Programming!

3 Upvotes

Here is a link to my youtube channel, Krishna Jawale. I make programming videos! Remember to subscribe and hit the like button if you liked a video!

https://www.youtube.com/channel/UCI0BIpx-yQZGwC8zDy37Lmw


r/PythonProgramming • • Feb 01 '25

i made to help and for fun

1 Upvotes

im in 8th grade and was bored in class so i made this in a compiler

https://www.programiz.com/online-compiler/5sFDprg0iI53r


r/PythonProgramming • • Feb 26 '25

I got problem with Kivy.properties

1 Upvotes

I was importing Objectproperty from kivy with no problems,,

then suddenly I could not import it again it says not found however the rest of the libraries are working fine like kivy.app and kivy.button all of them working fine except property

I tried with CHATGPT and it gave me some tips but still not working.

need your support...

from kivy.properties import property


r/PythonProgramming • • Oct 23 '18

An Introduction to Variable Types in Python

Thumbnail
youtube.com
5 Upvotes

r/PythonProgramming • • Oct 23 '18

How to Work with Strings in Python

Thumbnail
youtube.com
2 Upvotes

r/PythonProgramming • • Oct 23 '18

How to Work with Tuples in Python

Thumbnail
youtube.com
2 Upvotes

r/PythonProgramming • • Oct 20 '18

Using pandas and pymapd for ETL into OmniSci

Thumbnail randyzwitch.com
2 Upvotes

r/PythonProgramming • • Jan 01 '25

Difference Between @api.model, @api.multi, and @api.one Decorators in Odoo

Thumbnail
numla.com
1 Upvotes

r/PythonProgramming • • Jan 31 '25

Learn software development with python

1 Upvotes

I can program in Python at a medium level, but I've always produced kind of messy small projects. Now I'm finishing my master degree in AI/ML and I would like to learn a more structured approach to software development in python. I'm interested mainly in Software development, good practices, ... It would be helpful if you had some books/resources recomendations to level up my python programming in this sense.


r/PythonProgramming • • Dec 30 '24

ppd (A xxd clone in Python)

1 Upvotes

Hi All,

I'm excited to share my latest project, ppd, a Python implementation of the xxd command-line utility. This tool allows you to create a hex dump of a given file, similar to the functionality provided by xxd. This project is just for learning and fun.

Feel free to explore the repository, and don't hesitate to suggest improvements or contribute to the project.

PS: This is a work in progress.


r/PythonProgramming • • Oct 21 '24

Python Bar Chart Race Output Video Glitching Problem Pls Help Me

1 Upvotes

My Code:

https://drive.google.com/file/d/1WWDdI6mNiAILKhdHnfeKl3Dlhb7oKaui/view?usp=drive_link

import bar_chart_race as bcr
import pandas as pd
import warnings
from datetime import datetime

# Get the current time and format it
current_time = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")

# Ignore all warnings
warnings.filterwarnings("ignore")

df = pd.read_csv("raw_data.csv", index_col="Date",parse_dates=["Date"], dayfirst=True)

# replace empty values with 0
df.fillna(0.0, inplace=True)

# Apply a moving average with a window size of 3 (or adjust as needed)
df_smooth = df.rolling(window=3, min_periods=1).mean()

# Define the output filename
filename = f'YouTube Subscriber Growth {current_time}.mp4'

# using the bar_chart_race package
bcr.bar_chart_race(
    # must be a DataFrame where each row represents a single period of time.
    df=df_smooth,

    # name of the video file
    filename=filename,

    # specify location of image folder
    img_label_folder="YT Channel Images",

    # change the Figure properties
    fig_kwargs={
        'figsize': (26, 15),
        'dpi': 120,
        'facecolor': '#D3D3D3'
    },

    # orientation of the bar: h or v
    orientation="h",

    # sort the bar for each period
    sort="desc",

    # number of bars to display in each frame
    n_bars=5,

    # If set to True, this smoothens the transition between periods by interpolating values
    # during each frame, making the animation smoother. This is useful when there are significant
    # changes in data between periods, and it ensures that the bars move more fluidly.
    interpolate_period=True,

    # to fix the maximum value of the axis
    # fixed_max=True,

    # smoothness of the animation
    steps_per_period=60,

    # time period in ms for each row
    period_length=1000,

    # custom set of colors
    colors=[
          '#FF6F61', '#6B5B95', '#88B04B', '#F7CAC9', '#92A8D1', '#955251', '#B565A7', '#009688', '#FFD700', '#40E0D0', 
    '#FFB347', '#FF6F20', '#FF1493', '#00CED1', '#7B68EE', '#32CD32', '#FF4500', '#BA55D3', '#ADFF2F', '#20B2AA', 
    '#FF69B4', '#FFDAB9', '#FF8C00', '#DDA0DD', '#FF6347', '#4682B4', '#6A5ACD', '#00BFFF', '#8A2BE2', '#B22222', 
    '#FFA07A', '#5F9EA0', '#D2691E', '#FF00FF', '#FF1493', '#C71585', '#FF8C69', '#FFC0CB', '#F0E68C', '#FFD700', 
    '#8FBC8F', '#FFA500', '#FF4500', '#40E0D0', '#00FA9A', '#FFB6C1', '#5F9EA0', '#A0522D', '#6A5ACD', '#DA70D6', 
    '#B0E0E6', '#FF6347', '#FFD700', '#E0FFFF', '#C0C0C0', '#DCDCDC', '#6ECBCE', '#FF2243', '#FFC33D', '#CE9673', 
    '#FFA0FF', '#6501E5', '#F79522', '#699AF8', '#34718E', '#00DBCD', '#00A3FF', '#F8A737', '#56BD5B', '#D40CE5', 
    '#6936F9', '#FF317B', '#0000F3', '#FFA0A0', '#31FF83', '#0556F3'],

    # title and its styles
    title={'label': 'YouTube Subscriber Growth',
           'size': 52,
           'weight': 'bold',
           'pad': 40
           },

    # adjust the position and style of the period label
    period_label={'x': .95, 'y': .15,
                  'ha': 'right',
                  'va': 'center',
                  'size': 72,
                  'weight': 'semibold'
                  },

    # style the bar label text
    bar_label_font={'size': 27},

    # style the labels in x and y axis
    tick_label_font={'size': 27},

    # adjust the style of bar
    # alpha is opacity of bar
    # ls - width of edge
    bar_kwargs={'alpha': .99, 'lw': 0},

    # adjust the bar label format
    bar_texttemplate='{x:.0f}',

    # adjust the period label format
    period_template='%B %d, %Y',
)
print("Chart creation completed. Video saved as", filename, sep=' ',end='.')

My rawdata.csv:

https://drive.google.com/file/d/10LnehPO-noZW5zT_6xodOc1bsKwFED7w/view?usp=drive_link

also while opening in excel i see # in dates but opening in notepad it shows correctly proof:

Excel:

https://drive.google.com/file/d/1RNnmxr7be3oFvBh3crqKio48rXvQtvKS/view?usp=drive_link

Notepad:

https://drive.google.com/file/d/1g-pyPE_UcJEih4-zeNPvTlq5AWudg1f2/view?usp=drive_link

My Output video file:

see the video file it is glitching like going right side like swipping in mobile

https://drive.google.com/file/d/1Dwk9wsZhDJ-Jvkl_0JYF3NaAJATqYKQm/view?usp=drive_link

learnpython,#codinghelp,#pythonhelp


r/PythonProgramming • • Nov 17 '24

167 Python310 With Windows PE ( Exclusive !!! )

Thumbnail
youtube.com
1 Upvotes

r/PythonProgramming • • Oct 31 '24

Help: I need to change a variable on buttonclick.connect

1 Upvotes

As the title suggests, I am trying desperately to change a variable in my app when a user enters text and clicks a button to "set" the variable. The following code is a short version of what I'm trying to achieve:

import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLineEdit, QVBoxLayout, QLabel


class MainWindow(QWidget):
    def __init__(self):
        super().__init__()

        self.url_1 = "won"
        self.line_edit = QLineEdit()
        self.button = QPushButton("Change Variable")
        self.label1 = QLabel()
        self.label2 = QLabel(self.url_1)

        layout = QVBoxLayout()
        layout.addWidget(self.line_edit)
        layout.addWidget(self.button)
        layout.addWidget(self.label1)
        layout.addWidget(self.label2)

        self.setLayout(layout)

        self.button.clicked.connect(self.change_variable)

    def change_variable(self):
        new_value = self.line_edit.text()
        self.url_1 = new_value
        self.label1.setText(self.url_1)  # Print the new value
if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = MainWindow()
    window.show()
    sys.exit(app.exec_())

None of what I can find in the forums or tutorials points to a solution. Hopefully someone here can help. it would be greatly appreciated.

r/PythonProgramming • • Nov 22 '24

Check out my Joke Generator Website!

3 Upvotes

Hey everyone! I’ve just built a simple and fun joke generator website, and I’d love for you to try it out!

It randomly picks jokes from a database and allows users to add their own, so it grows over time with new and hilarious content. If you’re in need of a quick laugh or want to contribute your own joke, this is the place to be!

🔗 Check it out here: https://joke-gen-7d9c804b481f.herokuapp.com/

Feel free to submit your own jokes, and they’ll be added to the website for everyone to enjoy!

Let me know what you think or if you have any suggestions to make it even better. 😄

Upvote1Downvote0Go to commentsShare


r/PythonProgramming • • Aug 20 '18

Best Online Platform to Learn Python Programming using Data Analytical Tools

Thumbnail
stratascratch.kinja.com
2 Upvotes

r/PythonProgramming • • Nov 27 '18

How I made a Quora bot in Python

Thumbnail pythonhowto.com
2 Upvotes

r/PythonProgramming • • Nov 19 '18

A cool python script

Thumbnail
youtu.be
4 Upvotes