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 the program wont work, like, i enter a username and a password and it says wrong username/password entered, any help?

Member Avatar
+0 forum 0

Is NumPy is better than Python list?

Member Avatar
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 2

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)

Member Avatar
+0 forum 0

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" build_c="789" build_src = ['a','b','c'] build_list = {} for word in build_src: build_list[word] = build_{word}.format(word=word)

Member Avatar
Member Avatar
-1 forum 1

Hi, I have a .csv file in an AWS machine i wanted to convert that .csv file to .dat file? Can you please help me? Thansk, Swetha. G

Member Avatar
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 1

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 10. - The score on the 12 sided dice is divided by the score on the 4 sided dice and rounded down. - This value is added to the initial value. This process is repeated twice for two characters Bob and James. I also need the pseudo.

Member Avatar
Member Avatar
+0 forum 2

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 you") engine.runAndWait()

Member Avatar
Member Avatar
+0 forum 1

Why do we need to overload operators?

Member Avatar
Member Avatar
+0 forum 1

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): accum = 0 while(pin): accum += 3 * (pin % 10) pin /= 10 accum += pin % 10 pin /= 10 return (10 - accum % 10) % 10 try: if (len(sys.argv[1]) == 6): p = int(sys.argv[1] , 16) % 10000000 print "[+] WPS pin is : %07d%d" % …

Member Avatar
Member Avatar
-2 forum 3

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 how to get value for each ![Screen_Shot_2019-04-02_at_9_28_20_PM.png](/attachments/large/4/c360b7f4bd678f42dffcd650aabc62ba.png) Expected output as ![Screen_Shot_2019-04-02_at_9_34_44_PM.png](/attachments/large/4/62a05994baf66cc0f0e98e23f06a9cd1.png)

Member Avatar
+0 forum 0

**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 plot in x_min, x_max = X[:, 0].min() - 1, X[:, 0].max() + 1 y_min, y_max = X[:, 1].min() - 1, X[:, 1].max() + 1 h = (x_max / x_min)/100 xx, yy = np.meshgrid(np.arange(x_min, x_max, h), np.arange(y_min, y_max, h)) plt.subplot(1, 1, 1) Z = svc.predict(np.c_[xx.ravel(), yy.ravel()]) Z = Z.reshape(xx.shape) cs = …

Member Avatar
Member Avatar
+0 forum 1

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 what I need to use instead of append as I keep getting this error. Traceback (most recent call last): File "\\file1\Student-homes\Intake15\15QuintonSA\My Documents\Year 10\Computer Science\.Adventure Quest v2\main file.py", line 192, in <module> save("pandatron03", invent, 8) File "\\file1\Student-homes\Intake15\15QuintonSA\My Documents\Year 10\Computer Science\.Adventure Quest v2\main file.py", line 19, in save inventory.append(allinvent) `AttributeError: '_io.TextIOWrapper' object …

Member Avatar
+0 forum 0

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 looks like when I run my script from the console ; ......................................... C:\PYTHON34>python tst.py INPUT Value: 431.1 INPUT Power Value; 1.9907 RESULT 1739.554505641426658257842063903808593750000000000000000000000000 ......................................... What I need to be able to do ; 1.) Store whole number value to left of the decimal point without decimals to a variable = …

Member Avatar
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 1

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 have a text file contains data as: 0.00 -10.742 10.7888 6.33455 1.00 -17.75391 10.0000 4.66778 4.00 -19.62891 15.9999 4.232323 20.00 -20.7641 18.6666 3.99999 23.00 -34.2300 2.7777 2.00000 50.00 -50.000 1.87878 2.77778 65.88 -22.5000 2.99999 1.45555 78.00 -30.000 1.55555 2.45667 86.00 -37.7900 2.55556 7.55679 90.00 -45.00000 13.6667 2.677888 ---- ---- 200.02 …

Member Avatar
Member Avatar
+0 forum 1

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 * y return dydx def n2(y,x): s2 = 0.148234 s12= 0.0555877 dydx2 = -s2 * y + s12 * n1(y,x) return dydx2 def n3(y,x): s3 = 0.134337 s13= 0.0333526 s23= 0.0389114 dydx3 = -s3 * y + s13 * n1(y,x) + s23 * n2(y,x) return dydx3 def n4(y,x): s4= 0.125072 s14= …

Member Avatar
+0 forum 0

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 random import * current_image = None path_img_1 = "assets/background/notte.png" # images path path_img_2 = "assets/background/Hills Layer 01.png" def move_oval(oval, canvas, master, increase=2): # move the ball x1, y1, x2, y2 = canvas.coords(oval) if x1 <= 0: increase = 2 elif x2 >= canvas_width: increase = -2 x1 += increase x2 …

Member Avatar
Member Avatar
+0 forum 1

I can not get this program to list all of the contact names, it just list the first one. ##!/usr/bin/evn python3 # # Contact Manager Program # import csv FILENAME = "contacts.csv" def write_contacts(contacts): with open (FILENAME, "w", newline="") as file: writer = csv.writer(file) writer.writerows(contacts) def read_contacts(): contacts = [] with open(FILENAME, newline="") as file: reader = csv.reader(file) for row in reader: contacts.append(row) return contacts def list_contacts(contacts): for i in range(len(contacts)): contact = contacts[i] print(str(i+1) + "." + contact[0] ) print() def view_contacts(contacts): number = int(input("Number: ")) if number < 1 or number > len (contacts): print("invalid number") else: contact …

Member Avatar
Member Avatar
+0 forum 2

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, and the green player can only place green pieces. It is best to think of the board as standing upright. We will assign a number to every row and column, as follows: columns are numbered from left to right, with numbers 1, 2, ..., 7. Rows are numbered from bottom …

Member Avatar
Member Avatar
+0 forum 1

Please assit to translate the following code from python to php [Click Here](https://www.dropbox.com/s/qndlm9qenvge6sf/pyussd.rar) Thank you

Member Avatar
Member Avatar
+0 forum 4

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 to call and menu choice to print menu_d = { 1:['func_1()', '1)Load'], 2:['func_2()', '2)Save'], 3:['func_3()', '3)Add Phone Number'], 4:['func_4()', '4)View Phone Number'], 5:["", "5)Exit"]} choice = 0 while choice != 5: print "\nSelect an Option\n" for j in range(1, 6): print menu_d[j][1] ## print list's element #1 for key=j choice …

Member Avatar
Member Avatar
+0 forum 8

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 white. It should include at least three colors, tastefully distributed to bring your house to life. > Finally, it should have some interactive feature such that when a user clicks on your picture something changes (e.g. a color changes, a tree falls over, the sun rises, a door opens). The …

Member Avatar
Member Avatar
+0 forum 2

Hello there ! Which python books do you recommend for system programming?

Member Avatar
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 7

**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 have written C++ code of student database. I want python code so please anyone write in python and share asap.*** Thanks in advance :-)

Member Avatar
Member Avatar
-1 forum 14

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
Member Avatar
+0 forum 1

Is there any need for overloading operators in python?

Member Avatar
Member Avatar
+0 forum 1

Hi everyone, i am in need of ideas and want a bit of advise...i want to make a serial port sniffer which will be able to read the data goin in and out of the serial port between two other programs..... im not sure how i will be able to access a port when its already open....:confused: all advises are heartily welcome Thank you....

Member Avatar
Member Avatar
+0 forum 10

The End.