15,181 Topics

Member Avatar for
Member Avatar for GamerRunerrabits

Hello, so im making an os in pydroid 3, but i cant make a clock, im trying to make a graphical os but i cant cause i need a clock, Any idea? And i edited someones code for username and password to work, but i had to delete raw_data or …

1
606
Member Avatar for Abhays01
Member Avatar for Gabriel Hinojosa

Your goal is to write a Python function that takes a file handle as input and returns the most common words in the text file

Member Avatar for rproffitt
0
334
Member Avatar for GGomez

I have to write a python program that get a keyboad number and verfiy using the def function. Help n = int(input("Write a number") def countdown(n): if n >= 0: print('Blast off! Zero down') else: print(n) countup(n+1) countdown(3)

0
296
Member Avatar for karansingh

I have a bunch of variables as below.Now, I want to build a variable dynamically as below by iterating through for loop but surprisingly this won't work as .format can only be implemented for strings. Could anyone share your thoughts like how can this be implemented in Py? build_a="123" build_b="456" …

Member Avatar for Aakashdata
-1
313
Member Avatar for Aakashdata

I am a fresher and want to learn Pandas (Python). A few professionals I talked to suggested I use the book "Learning Pandas" by Michael Heydt. Should I give it a try? Do you have any other suggestions for me?

Member Avatar for Abhays01
0
249
Member Avatar for vegaseat

If you press any key on your keyboard, this small Tkinter GUI program will tell you which key and what type of key has been pressed. Great for applications where a simple key stroke is required.

Member Avatar for Webtest
1
14K
Member Avatar for Dagw300805

Hi all, I need to create a program on python that: At the start a 4 sided dice is thrown and a 12 sided dice is thrown to calculate two values for strength and skill the following method is used for each player: - Each attribute is originally set to …

Member Avatar for Dagw300805
0
524
Member Avatar for sidelcrew

The issue i am having using this text to speech is that it start play before a panel is open , how do i get it to play after a panel in wxpython is open import pyttsx3 # initialisation engine = pyttsx3.init() # testing engine.say("Welcome to 24-hour ATM service") engine.say("Thank …

Member Avatar for rproffitt
0
182
Member Avatar for Aakashdata
Member Avatar for javi.crecenteespino

Hello people. Sorry for my English, I use google translator .. Please Can anyone convert this code to C # or vb.net? import sys VERSION = 0 SUBVERSION = 2 def usage(): print "[+] WPSpin %d.%d " % (VERSION, SUBVERSION) print "[*] Usage : python WPSpin.py 123456" sys.exit(0) def wps_pin_checksum(pin): …

Member Avatar for happygeek
-2
11K
Member Avatar for karupython

I tried achieving using list index position but that's not the good way of coding, as we will never know which position is the column located. Honestly, I tried to come how to achieve in python in getting correct values for each column but in vain Need help in python …

0
220
Member Avatar for yahoovokoyo

**May I know how to correct the NameError: name 'xx' is not defined ?** import numpy as np import matplotlib.pyplot as plt from sklearn import svm, datasets # import some data to play with iris = datasets.load_iris() X = iris.data[:,[2,3]] y = iris.target def plotSVC(title): # create a mesh to …

Member Avatar for Reverend Jim
0
392
Member Avatar for Pandatron03

Hiya, looking for some help on this bit of code: def save(x,y,z): user=x yourinventory=y score=z allinvent=[] allscore=[] with open("Inventory.txt","r+")as inventory: for line in inventory: allinvent.append(line.strip().split(',')) allinvent.append("\n") for line in allinvent: if (line[0]==yourinventory): allinvent.append(yourinventory) allinvent.pop(line[0:8]) print(allinvent) break inventory.append(allinvent) inventory.close I'm currently working on saving things like inventory, and I'm not sure …

0
224
Member Avatar for amyvaulhausen

Parsing Large Numbers Question Hi All, I am writing some simple code to raise a base value to a power then perform some operations on the output. I have included the code I am using now, below ( see end of this message ), also see immediately below what this …

Member Avatar for rproffitt
0
402
Member Avatar for Mia Quelch

Hi, I'm trying to infintley print random numbers. I have the code to print infintley, but not to print a random number (completely random, no pattern). Does anyone have the code to print a list of numbers completely at random?

Member Avatar for Reverend Jim
0
241
Member Avatar for itsbinsha

I am trying to build a GUI app for graph plotting where graph can be shown as a slideshow so that the data can be clearly visualised. First I wish to plot a set of data then after a specific time interval next set of data and so on. I …

Member Avatar for rproffitt
0
503
Member Avatar for ALosh99

I have four ordinary differential equation written in mathmatica : Simplify[DSolve[{y1'[x] == -0.162y1[x], y2'[x]=-0.148 y2[x]+ 0.055y1[x],y3'[x]==-0.134 y3[x]+ 0.033y1[x]+ 0.039y2[x],y4'[x]==-0.125y4[x]+0.021 y1[x]+0.025y2[x]+ 0.043y3[x], y1[0] == 100,y2[0]==4.76,y3[0]==69.7,y4[0]==0}, {y1[x], y2[x],y3[x],y4[x]}, x]] I am trying to write them in python I have try the following : def n1(y,x): s1 = 0.162131 dydx = -s1 * …

0
236
Member Avatar for Linch1

I'm trying to create a platformer with tkinter, i've created the character and now i'm trying to create a dynamic background with a biomes system so when the player passes from a biome to another the background changes the image. from tkinter import * from PIL import Image, ImageTk from …

Member Avatar for rproffitt
0
866
Member Avatar for runIT.py

Hello, I don't know too many things of programming, I've barely started with some online courses, but am at the very beginning. This is what I need to do: 1. From a folder that contains multiple files I need to copy a particular file. 2. Paste that particular file in …

Member Avatar for rproffitt
0
468
Member Avatar for dendenny01

I am trying to implement Connect 4 game using Min-Max as utility to find best possible move.<br><br> The game is played on a 6x7 grid, with six rows and seven columns. . The two players take turns placing pieces on the board: the red player can only place red pieces, …

Member Avatar for rproffitt
0
459
Member Avatar for vegaseat

An example showing how to use the wx.media.MediaCtrl() widget to play MIDI, MP3, WAV, AU, AVI and MPG audio and video files. I have only tested it with Windows. If you are very ambitious, you could use a random graphics display with the sound, or tie the slider position to …

Member Avatar for bunkus
2
4K
Member Avatar for tjsilver

Hello, I found this code in a thread from about 18 months ago in a post by 'woooee' - [CODE]def func_1(): print " func_1 test" def func_2(): print " func_2 test" def func_3(): print " func_3 test" def func_4(): print " func_4 test" ##---------------------------------------------------------------- ## dictionary = list of function …

Member Avatar for August.Garcia
0
3K
Member Avatar for Kim_11

I've been tasked with this assignment: > In a graphics window, you are to draw an outdoor scene containing a house. > Your drawing should include at least the following shapes: three rectangles, two lines, one circle and one text label > Your picture should not be boring black and …

Member Avatar for vegaseat
0
6K
Member Avatar for tony75
Member Avatar for Reverend Jim
0
410
Member Avatar for Harshali_1

Hello everyone, I am a learner, who found this helpful community where one's query is satisfied in so many great ways. I have one such query regarding Recursion. Can anyone help me to know about the effects of Recursion in Python? Does it cause any trouble?

Member Avatar for sritaa
0
474
Member Avatar for santhosh_8

**Create a student class which has following functionality:** - Initialise a student with mandatory parameters - Create a student with name, email and phone number - Add a list of subjects based on which class he is - Add a function to calculate his percentage based on marks scored ***I …

Member Avatar for Reverend Jim
-1
3K
Member Avatar for Mohan_1845

I couldn't install the tensorflow framework in my laptop.can anyone help me out in installing tensorflow for doing my project on deep learning techniques.

Member Avatar for rproffitt
0
325
Member Avatar for dukoolsharma
Member Avatar for vegaseat

This short Python code gets the local time from the PC as a formatted string using time.strftime('%H:%M:%S'). The time string is displayed in a label using a larger font. A recursive function checks the time five times per second, and updates the time string, if it has changed. Five times …

Member Avatar for Vinay_17
2
26K

The End.