15,190 Topics
![]() | |
Create a dialog box and add text entry box and colour to the dialog box and text using wxpyton | |
How to use object based coding to create dialog box in wxpython add only close button | |
I am a final year student. Now I need to start work for final project. But I am not familiar how to do it. Can you help me out, How to prepare a index page for my website ( Complaint website). Or if you have completed project before, Please send … | |
| |
In this pattern, n represents the dimensions of the shape pieces and k their number of repetitions. For example, if **n** input is 3 and **k** input is 5, the following figure will be the output of the program. ![Screenshot_(631).png](https://static.daniweb.com/attachments/4/d6ce9d095cf0984a75b33841cd98f248.png) | |
I have checked various sites about, "**How to balance chemical equations thru programming by usiong python or c++ ?**." They all have simple easy equations, but how do we programme Chemical Equations which consist **Ions/ Hydrates**. If some one knows how to do that please respond. A slight idea can … | |
Hi everyone I'm new in python, I need to read the first 10 line of multiple .txt files (from s1 to s50) in folder and save these values of each file in another file (separately) and then read the second 10 lines of (s1 to s50) then save the second … | |
Hi guys, I have this assignment and I have to write a program to translate file from Piglatin to english without using the split function. My code only works for a word and I can't figure out how to do it for a sentence without the split function. Thanks in … | |
I just started using python a couple of days ago, so I am a complete beginner. Basically what I am trying to do is the following. Imagine that I have a string variable such as: food = 'bread' I want to create another variable (integer or another type) so that … | |
Write a Python function maxaceregate(!) that takes a list of pairs of the form (name score) as argument, where name is a string and score is an Integer Each pair is to be interpreted as the score of the named player For instance, an input of the form [CKohir 73) … | |
Hi When I run main.py I got this error how can I fix it? I'm using https://github.com/PicciMario/iPhone-Backup-Analyzer-2 / Traceback (most recent call last): File "./main.py", line 44, in <module> from PySide import QtCore, QtGui ImportError: No module named PySide I appreciate your help | |
The datetime module provides date and time objects that are similar to the Date and Time objects, but they provide a rich set of methods and operators. Read the documentation at http: // docs. python. org/ 2/ library/ datetime. html 1. Use the datetime module to write a program that … | |
# What Are Voronoi Diagrams? # Voronoi Diagrams are an essential visualization to have in your toolbox. The diagram’s structure is a data-driven [tessellation](https://en.wikipedia.org/wiki/Tessellation) of a plane and may be colored by random or to add additional information. ## Learn the Lingo ## The set of points that generate the … | |
I have written the following Tkinter script: When I run it, the first thing that happens is the File Dialog box opens without it being called. I am expecting the file dialog box only to open when the "Open Document" button is pressed. import tkinter as tk from tkinter import … | |
Hello there , can anuone help me with this? Write a Python program which takes a sequence of inputs that contain lists of grades of some students (each student info is presented in one line) and some query items. Input data will contain the total number of students, i.e. M_STUDENTS, … | |
JQ is taking a car trip with his family. On the trip, he will stop for fuel, food or lodging. When stopping for gas, JQ will record the amount of fuel he is willing to pay for. When the family stops for lodging, they will also have a meal. JQ … | |
![]() | Hey guys, I want to make a simple program which calculates speed, distance and time. This is the code I used: [CODE] a=input("1)Find speed\n2)Find distance\n3)Find time\n4)Quit\n") while a!=4: if a==1: d=input("\nEnter distance: ") t=input("Enter time: ") print ("Speed: "+str(d/t)+"\n") elif a==2: s=input("\nEnter speed: ") t=input("Enter time: ") print ("Distance :"+str(s*t)+"\n") … |
I have to convert a piece of C++ code to Python. Except I can't understand what it's doing. This is the code: [CODE]#include <iostream> using namespace std; int calculate(int values[], int size) { int answer = 0; for (int 1 =0; i< size; i +=1) } answer += values[1]; } … | |
Would anyone be able to help me, I am trying to make a C++ program which reads values from csv file and prints them(there are going to be three 4 rows, 3 columns). I want to know how can I add the rows (like the sum of the first row … | |
Flask State , A plug-in for displaying native state. It’s a better choice for new user. Github :https://github.com/yoobool/flask-state I would love to hear any good or bad feedback, suggestions for improvement, or just your general opinion. | |
Hi everyone! Do you know how to create Pizzeria Program using Python and PostgreSQL where it can keep track of the pizza orders and view the order information using Python and PostgreSQL? Technology needed: -Django for the program -Postgresql for database How it can be used: Every time there is … | |
Hi i am computer science students. I always confused to about php base websites or another website. Yesterday my teacher gave me assingement to check website either it is php base or other platform. But i haven't decided to give answer. I am week student in class. please help me … | |
import random money = 100 Ask user if they want to play or "QUIT" (.upper()) while game != "QUIT": 2 dice generate random numbers 1-6 on each (generate random numbers inside while loop) Every roll cost $3 Win $5 if total is 7 Win $10 for snake eyes Else display … | |
I need help with my coding and I need to know how to configure my text for my button, Here is my code so far: class EyeSprite(Sprite): def __init__(self, game): Sprite.__init__(self, game) self.images = [ PhotoImage(file="C:\\Users\\John Magana\\Desktop\\Python Projects\\clicker game folder\\eye1.png") ] self.current_image = 0 self.current_image_add = 1 self.last_time = time.time() … | |
write a Python function called sumList () which will receive a list of integers as input parameter.sumList() must: a)Print the list b)Sum all the numbers in a list and print the total. The main section of the program must: c)Ask the user how many numbers the list should contain; d)Create … | |
I am new at python. How can i translate this pseudocode to python? Thanks... ![Screenshot_1.png](https://static.daniweb.com/attachments/4/5e8c2ea0725682bc92b714cc5ea53d0f.png) | |
Hi everyone can someone help me translate this pseudocode to python? is for a branching diagram function R=Experimento() yk=U(); for ex=1,200 R(ex)=yk; ykm1=FG(yk,cm,lambda); yk = ykm1; (Store yk, a delay z^-1) endfor end function function FG(x)->y y = exp(-(x-cm)^2/lambda) end function | |
![]() | def fib(num): if num<=1 return num return fib(num - 1) + (num - 2) num = int(input("enter a number higher than 0: ")) print(fib(i)) |
Python 3 programing, Plurality voting. Help Please!!! I need the code for this type of voting method in python 3. I attached the csv file, also the name of the csv file is heroes.csv. https://drive.google.com/file/d/1ObV7L9FVM-Bdek26YTzS8IzHKQsZx-rT/view?usp=sharing Plurality voting This is the conventional one person, one vote method we use today in … |
The End.