15,181 Topics

Member Avatar for
Member Avatar for Zinavo
Member Avatar for Radroad

I made a 3x3 connect 4 board game now I want to expand it so Its an actual connect 4 game and not tic tac toe. I want to make the board 5x7 please help from random import randint def initialiseBoard(): print('Following is the board and the respective positions.\nEnter the …

1
521
Member Avatar for ppel123

Hello everyone, I have a problem with my app when closing the gui-UI, that is developed in PyQt5. In my app I have 3 discrete threads and one of it using slot-signals for communicating with the gui. The problem I have is that when I close the gui, and the …

0
653
Member Avatar for Radroad

I want to make this code so I can pick exactly where to place my pieces. Right now you can only drop the pieces and it drops all the way to the bottom. What if I want it to be in the middle. Kind of like tic tac toe if …

Member Avatar for Radroad
0
292
Member Avatar for Radroad

General Description please please please help please code in python3 let me know if any extra information is needed You have been chosen to create a version of connect 4. In this version, there can be forbidden positions, or places that neither x nor o can play. However, connecting four …

Member Avatar for Radroad
0
474
Member Avatar for JamesCherrill

Hi Guys. I'm getting bored, and so I'm looking at Python for a new challenge. I hoped to be able to use my Java NetBeans IDE to avoid an IDE learning curve, but it seems that NetBeans support for Python died years ago. So, all you Python gurus... what do …

Member Avatar for Reverend Jim
2
1K
Member Avatar for littlepr

Guys, What is wrong with my compution here when "hrs" entered is 45? The end result expected si 498.75 but it keeps failing to compute second portion correctly (please see below and attached screenshot). hrs = input("Enter Hours:") h = float(hrs) OvrTimehrs = float(hrs) - float(40) HourlyRate = input("Enter Hourly …

Member Avatar for Reverend Jim
0
503
Member Avatar for TransKim

Help me find the solution to this task in C programming Write a function: int solution(int A[], int N); that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, …

Member Avatar for JamesCherrill
-1
138
Member Avatar for miltocke

Hello DaniWeb! I am interested in learning computer programming, but have no previous experience. I've been told that Python is a good place to start, so I decided to give it a whirl. If anyone can help point me toward resources geared for the absolute beginner (learning both programming concepts …

Member Avatar for Raunikkapoor
0
238
Member Avatar for medsibouh

hello guys I'm trying to make a code that return the name of the flight that has the most total number of passengers from a file : Alitalia Rome 180 Alitalia Pisa 82 Germanwings Munich 96 Germanwings Frankfurt 163 NorwegianAir Bergen 202 Wizzair London 184 Wizzair Frankfurt 83 Wizzair Lisbon …

Member Avatar for Reverend Jim
0
868
Member Avatar for ppel123

Hi everyone, I am working on an app and trying to create a corrector and I am using keyboard module for the correction. I have created a class, which reads pressed events and displays them to screen, and its action are dependent to a variable passed to the constructor. If …

Member Avatar for Dani
1
973
Member Avatar for Tcll

Sorry for the lousy title, "InterProcess Communication" was too long Basically, I'm looking to use the native `_winapi` and `msvcrt` modules to launch an integrated python interpreter and communicate with it over pipes I can't find anything on Google or DDG, and I've been searching for days, but nobody uses …

Member Avatar for Tcll
0
2K
Member Avatar for Gabriel9999

I have to install the Django package to my mint distribution. I want to accomplish this by using pip command but can not find the pip command. How can I install the pip command ? Thanks

Member Avatar for Reverend Jim
1
311
Member Avatar for Crazyscript77

Hi all, I was recently having a look at the pywin32 module and found a multitude of approaches on how to find the color of a pixel given its coordinates, but was wondering if there was a way to find the coordinate of a pixel given its particular color, either …

Member Avatar for spam_1
0
4K
Member Avatar for EL_2

I'm new to tkinter so i used a template tkinter code to have multiple page windows each page is in a different class, i thought diving in will make me learn better and it has, and also special thanks to stackoverflow. the kiosk app is all fullscreen, the start is …

0
125
Member Avatar for Analo

write a function(let us call it score) that given a point in the target (defined by its real cartesian coordinates x and y), returns the correct amount earned by a dart landing in that point

Member Avatar for rproffitt
0
90
Member Avatar for ppel123

Hi, I am developing an app that monitors and corrects the user input based on some rules. I am reading the events from keyboard with the keyboard python module. I faced some problem when the user types very fast, as regards some overlays of text. By this I mean that …

Member Avatar for ppel123
0
418
Member Avatar for ppel123

Hello, I have created a spelling corrector for a project and currently I am struggling on making it work in real-time application (on-the-fly) By this I mean, that I am reading the input of the user (anywhere on the Windows OS - not only in python shell) with the python …

1
613
Member Avatar for DaveScriptz

I was wondering how to have a price total in this code. As you can see, the code repeats as is necessary so I was wondering how to add up a total if there is only on price variable. times = int(input('How many items on your shopping list? ')) def …

Member Avatar for JamesCherrill
0
238
Member Avatar for Lev_3

self.image1 = PhotoImage(file="/home/sane/Documents/mathfox/a.ppm") Label(self.frame1, image = self.image1).place(relwidth = 1, relheight = 1) I would like to put my image behind all the other widgets, but I don't know why it keeps overlapping other content of whole function. Anyone?

Member Avatar for Biiim
0
123
Member Avatar for Joseph_49

how would one convert this to python? var unlockedState = 1000; var lockedState = 2200; var motorPin = 14; var buttonPin = 4 var ledPin = 17 var blynkToken = 'blynk_token_here'; // *** Start code *** // var locked = true //Setup servo var Gpio = require('pigpio').Gpio, motor = new …

Member Avatar for rproffitt
0
579
Member Avatar for Aman_24

Write a function that takes a number n as input and returns a tuple of two values - the number of digits in that number and sum of digits in that number.

Member Avatar for JamesCherrill
-1
153
Member Avatar for Aman_24

Write a function that takes as argument a string containing multiple words and returns a string containing the same words in reverse order. Eg., input = 'India is a democracy'; output = 'democracy a is India'

Member Avatar for AndrisP
0
588
Member Avatar for Future_1

I want to recall a root that i had destroyed. But if i use root.destroy() Then when i want to recall root, It doesnt work...... ..........Please answer my question......

Member Avatar for rproffitt
0
94
Member Avatar for YpowT

Hi all, I am building a GUI application using Python and Tkinter to mimic a Pay-At-Pump system. Currently, I am at stage where I have coded and defined the relevant frames and widgets that help to traverse through those frames, these are organised into classes. However, I am trying to …

Member Avatar for YpowT
0
1K
Member Avatar for Sonam_7

Modify your program from Learning Journal Unit 7 to read dictionary items from a file and write the inverted dictionary to a file. You will need to decide on the following: How to format each dictionary item as a text string in the input file. How to covert each input …

Member Avatar for Reverend Jim
0
120
Member Avatar for user287961

Hi,i have this code that i need to turn in for my homework. I based it off some things i saw on the internet. The point of the homework is that i need to have 2 or more structures and use some functions. It would mean a lot if someone …

Member Avatar for nullptr
0
455
Member Avatar for Chinney

Hello everyone, hope you're having a great day :D I have a project idea in mind but unsure how to go about solving it / unsure if i can solve it. I want to be able to classify messages to categories, where not all categories are known. I want the …

0
127
Member Avatar for ppel123

Hi, I am trying to create an app with 2 python files, the first reads the user input (either from python shell or directly from the keyboard via modules like pynput-keyboard) and stores it in a variable (after enter pressed). The second creates the gui that has 2 labels and …

0
2K
Member Avatar for adisharma

Hello Everyone, I want to learn python to become a game developer and I looking to learn python course online but I am confused about which course is good for a fresher point. I have worked on the python module also so I have basic knowledge about it. If anyone …

Member Avatar for Rohan_15
1
550

The End.