14,948 Topics

Member Avatar for
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
121
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
412
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
586
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
439
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
116
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
1K
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
545
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
152
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
226
Member Avatar for Jorge_16

Can someone help me with this program? How do you discard values? Below is a code that was used in the first expedition to Mars, which simplified the two-letter terms to make the transmission easier. AA: Glycine TU: Arginine " AT: Cysteine UA: Serine AU: Start UT: Delete TT: …

Member Avatar for rproffitt
0
177
Member Avatar for drake3

i'm making a program after the user finishes answering asks him to repeat or if he wants to enter another values and keep asking till the user says different than continue

Member Avatar for Reverend Jim
0
185
Member Avatar for abdallah mohamad

hello everybody im trying to compute the log(n) while n in the first time =10 and second time =100 , third =1000 and fourth = 10000 but an error still happenening the error is math domain error can anybody help in this code and error import math import logging n …

Member Avatar for rproffitt
0
297
Member Avatar for bhavya_7

I have daily scatsat level4 data for wind for year 2017 in a single folder I need to calculate the windspeed of the data and average of windspeed for 8 days for the whole year and need to plot it in a image using quiver plot **I am able to …

0
334
Member Avatar for Mohan_12

Hi All i am having a python code i have to convert this to java i have placed the code below import boto3 import sys import re import json def get_kv_map(file_name): with open(file_name, 'rb') as file: img_test = file.read() bytes_test = bytearray(img_test) print('Image loaded', file_name) # process using image bytes …

Member Avatar for rproffitt
0
566
Member Avatar for Daniel_118

# Find minimum integer coefficients for a chemical reaction like # A * NaOH + B * H2SO4 -> C * Na2SO4 + D * H20 import sympy import re # match a single element and optional count, like Na2 ELEMENT_CLAUSE = re.compile("([A-Z][a-z]?)([0-9]*)") def parse_compound(compound): """ Given a chemical compound …

Member Avatar for JamesCherrill
0
406
Member Avatar for TylLang

Tyl is a programming language that is intended for curious people who are interested in software development, as well as for intermediate and experienced developers who want to try a different programming language. Some of Tyl features: - Clean code - Symbolized keywords - One-line statements - System modules & …

Member Avatar for Reverend Jim
1
927
Member Avatar for Zarar_1

The End.