14,968 Topics

Member Avatar for
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
463
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
502
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
237
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
857
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
962
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
309
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
124
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
415
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
588
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 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
587
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
442
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
118
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
546
Member Avatar for Czech

Hi guys im making a memory game but i need to add random letter to buttons and if some button have same letter it will turn green and if not it will turn red. i will send here only 2 buttons because i have 27 buttons in my code but …

Member Avatar for Reverend Jim
0
173
Member Avatar for Sharpay

The question and my solution are attached. I do not know how to correct it. I hope someone can show me a correct and complete answer. Thanks! ![program.png](/attachments/large/4/ea29c5dabdaa2da909f7b82b4277c5f2.png) ![微信图片_20200302011413.png](/attachments/large/4/cdaba293002a1fcf746e6cd6344d4ddb.png) ![微信图片_20200302011421.png](/attachments/large/4/dcfa743ceb40fdcbedd22f1248b6ae97.png)

Member Avatar for JamesCherrill
0
153
Member Avatar for V.

Hello, I'm trying to build a count up, now I have the problem, that I don't know how to show the numbers on the screen. So I found tkinter, but I need to refresh the content of the window (e. g. every hour). How can I manage to do that? …

0
99
Member Avatar for ppel123

Hi everyone, I am working on a project (just started) in PYTHON and I want to create a keylogger for 2 languages english and greek. For this I have created the below (it is under "construction") code. from pynput.keyboard import Key, Listener from langdetect import detect from pynput import keyboard …

Member Avatar for rproffitt
0
1K
Member Avatar for Phummanat

p=int(input("Enter money: ฿ ")) n=int(input("Enter price: -฿ ")) x=p-n print("Change is ฿",(x)) print("Bank 1000 =",(x//1000),('bill/bills')) print("Bank 500 =",(x%1000//500),('bill/bills')) print("Bank 100 =",(x%1000%500//100),('bill/bills')) print("Bank 50 =",(x%1000%500%100//50),('bill/bills')) print("Bank 20 =",(x%1000%500%100%50//20),('bill/bills')) print("Coin 10 =",(x%1000%500%100%50%20//10),('coin/coins')) print("Coin 5 =",(x%1000%500%100%50%20%10//5),('coin/coins')) print("Coin 2 =",(x%1000%500%100%50%20%10%5//2),('coin/coins')) print("Coin 1 =",(x%1000%500%100%50%20%10%5%2//1),('coin/coins')) q=x//1000 w=x%1000//500 e=x%1000%500//100 r=x%1000%500%100//50 t=x%1000%500%100%50//20 y=x%1000%500%100%50%20//10 u=x%1000%500%100%50%20%10//5 i=x%1000%500%100%50%20%10%5//2 o=x%1000%500%100%50%20%10%5%2//1 l=q+w+e+r+t+y+u+i+o print("all …

Member Avatar for wwwalker
0
228

The End.