15,175 Topics

Member Avatar for
Member Avatar for Asima_2

hi so im trying to do a code that will ask the user for 3 values,determine if those values make a triangle,find the angles if it does make a triangle ane draw the triangle if the values make one.im having trouble drawing the trangle.this is the code i have so …

Member Avatar for ddanbe
0
442
Member Avatar for Amaina

I have been cracking my head on this mater in the past couple of days. I am faced with a situaton where i need to write a MySQL equivalent of PHP code to loop through sql select results. The Php code looks like this $query = "SELECT pubid, author FROM …

Member Avatar for flashx4u
0
19K
Member Avatar for ALosh99

I want to shift my plot to the right by fixed value , I have npy file contain 7 columns, I plot the histogram for the column number 7 as below: plt.figure() plt.hist(x[7],bins=800,color='y',histtype='step',linewidth=2,stacked=True) plt.show() I am trying to shift my plot to the right with fix value but I could …

Member Avatar for ALosh99
0
1K
Member Avatar for Gustavo_7

I would like to retrieve a filtered data from a text file and send to excel. I have these lines in a text.txt file: I am Fred username is fred from USA cd I am Robert username is bob from USA cd I am John username is john from China …

Member Avatar for rproffitt
0
518
Member Avatar for Sergi_1

I am looking for an API that will be easy to use, also allows me view reports of sended SMS, that also has documentation and examples to how manage it.

Member Avatar for Tran_10
0
301
Member Avatar for Jack_9

Hello fellow python lovers of daniweb.com. This isn't as much a question as much as the fact that I want to see how different people would go about using python to inject an SQl database. I made a script were you can access the ip and run a command. NOTE:Obviously …

Member Avatar for phoenix079
0
8K
Member Avatar for Abdullahi_2

I have writen my codings, all that is remain for me is to convert to software. Please how do I convert it...

Member Avatar for JimmyD94
0
468
Member Avatar for shibunath

Fellow Python developers, Python has a sorted() or sort() function to implement ascending or descending order programs,but supposing if i want to develop a ascending order program that takes user input and ascends or descends them,how should I go about? For Example: Lets Say i want to convert this C …

Member Avatar for Zak_2
0
6K
Member Avatar for usman_14

Hey guyss, here are a big champs of programming I have seen in this web, I am stucking in this assignment of mine, from where should I start I am totally stucked, is anyone here who can help me for this programme........ Define a function drawCircle. This function should expect …

Member Avatar for Gribouillis
0
1K
Member Avatar for lllllIllIlllI

Hi i have been spending the last few days deciding on an IDE that would let me program in Java, C++ and python and notepad++ looked pretty good. The only issue is i cant work out how to make the program run once i have made it. I looked in …

Member Avatar for Kuldeep_8
1
3K
Member Avatar for Mystrious

The purpose of this question is to calculate the three cubic roots of a complex number. A complex number is of the form a + ib where i is √−1. Attach the full qustion

Member Avatar for ddanbe
0
228
Member Avatar for Elizabeth_13

I am having trouble getting my button to work. What I am trying to do is when the button is pressed, it should call the function clickGame() The window is opening after I press the button but I get an error message: self.tk = master.tk AttributeError: 'Point' object has no …

Member Avatar for Gribouillis
0
770
Member Avatar for Mamatha_1

Hi All, I am a newbie programmer in python and I am trying to read multiple csv files from a folder, replace the delimeter for all the csv files and then output these files into a new folder with replaced delimiter. So far I am stuck at the beginning. Please …

Member Avatar for rproffitt
0
611
Member Avatar for Amani_2

I am having trouble coding an animation for a pendulum simulation. I can never seem to get any of the code right. I tried using pygame, but it didn't work even after I installed it into my computer! I just need to know where to start! Help please!!!

Member Avatar for rproffitt
0
224
Member Avatar for suhayb

i want to make simple cafe management system in Tkinter the buttons are automatically generating from a database so how i can get the names of the buttons and their price from a database and also want so insert this into a receipt(textbox) thanks def showbreakfast(): data1 = readbreakfast() for …

0
317
Member Avatar for davy_yg

How to install Keras, Phython framework on Windows? https://ankivil.com/installing-keras-theano-and-dependencies-on-windows-10/ C:\xampp\htdocs\python>cd "%USERPROFILE%\Anaconda3\Lib\site-packages" The system cannot find the path specified. What's missing? Is installing CUDA and Theano a prerequisite before installing Keras?

Member Avatar for rproffitt
0
175
Member Avatar for davy_yg

Hello, I am new to python. I am trying to run this python program using xampp. first.py print('Interest Calculator:') amount = float(input('Principal amount ?')) roi = float(input('Rate of Interest ?')) years = int(input('Duration (no. of years) ?')) total = (amount * pow(1 + (roi/100), years)) interest = total - amount …

Member Avatar for Reverend Jim
0
174
Member Avatar for Sajid_10

https://github.com/shivamshekhar/PyGalaxian Please update PyGalaxian file as i want the number of hits by the aeroplane into another file either text file or excel file or jupyter notebook and want to plot using plotly and plotlib library and show the analytics at what rate the hits are occuring after firing and …

Member Avatar for JamesCherrill
0
534
Member Avatar for PRASANNA_3

Hi I am a python bigginer, I have a scenario where I need to search and select a particular value from linux command "df -h". dumpe2fs 1.42.13.x5 (23-Mar-2017) Inode count: 786432000 [root@copper02 ~]# In this above output I need to store the inode count number in to a variable to …

Member Avatar for Reverend Jim
0
329
Member Avatar for davy_yg

Hello, Anyone knows anything about phython? Someone mention to me if you need anything about AI Phython would be the perfect language to program it. Is that true? Thanks in advance.

Member Avatar for alan.davies
0
342
Member Avatar for David_94

Hello, Daniweb -- I have a C++ library, for which I am trying to make a Python interface. I have come across a linking issue which I haven't been able to solve. The library has a series of header and source files, and I am looking for a way to …

Member Avatar for rproffitt
0
3K
Member Avatar for kullboys

Hello everyone How to fetch data from PostgreSQL to WXpyhon GUI to automaticaly open the next processe ? Thanks

Member Avatar for rproffitt
0
228
Member Avatar for fatima_7

hi how can change the size of image: from CSS for three pages using dreamweaver ? how can i (position and reposition something in the page)? i tried this tag, but nothing change: img.resiz{width:200px;height:1000px; what is missing ?? should i include the img link? and what will be the correct …

Member Avatar for Tarek_2
0
273
Member Avatar for random_1

Hi, is there a way to convert a file into a pcap file? i have a .raw file and i want to change it to a .pcap file. so far what i know is that .pcap has some sort of header or offset or something compared to other files. i …

Member Avatar for rproffitt
0
583
Member Avatar for nadiam

Hello. I found this packet sniffer code that uses the pycap wrapper. Initially, its for live capture but I've changed it to read a .pcap file instead and im trying to understand it but some parts of it i can't i comprehend. could someone explain them to me please? the …

0
460
Member Avatar for Kim Gabrielle

I am making a webpage wherein I am going to ask for an input through an html form using php, and then call a python script after clicking "submit (flames)" to run and process the Flames game. Can someone help me on how to execute a python script through a …

Member Avatar for broj1
0
7K
Member Avatar for Ellena

class robot: def __init__(self, length = 20.0): self.x = 0.0 self.y = 0.0 self.orientation = 0.0 self.length = length self.steering_noise = 0.0 self.distance_noise = 0.0 self.steering_drift = 0.0 def set(self, new_x, new_y, new_orientation): self.x = float(new_x) self.y = float(new_y) self.orientation = float(new_orientation) % (2.0 * pi) def set_noise(self, new_s_noise, new_d_noise): …

Member Avatar for JamesCherrill
0
793
Member Avatar for Mamatha_1

Hi All, I have a task in Python where I need to move .csv files into a new folder. I tried using the below code but it was throwing me an error. import shutil import os source = os.listdir(r'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\SampleZipFiles/') destination = 'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\DelimitedFiles' for files in source: if files.endswith("_new.csv"): shutil.move(files,destination) Error …

Member Avatar for ryantroop
0
516
Member Avatar for Basel_1

Hi, i was working on a code for a vending machine and i do consider myself to be a beginner, anyway i feel my code is much longer than it needs to be and i want someone to show me a new, shorter way of presenting it. import time print …

Member Avatar for Reverend Jim
0
21K
Member Avatar for fatima_7

i dont want to know the result, i want to know the (outputs) and any other example similer to the quation to understand. A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing …

Member Avatar for rproffitt
0
507

The End.