15,181 Topics

Member Avatar for
Member Avatar for exploretech
Member Avatar for Shianne_1

I need help with this problem! I can't get all three to display. Write a program that prompts a user to enter their hourly pay and rate. Understanding that "time and a half" applies to hours in excess of forty, calculate and print the user's regular pay, overtime pay, and …

Member Avatar for Reverend Jim
0
339
Member Avatar for Bright_5

Hi guys, i am new here. Been on this code for some days and i seem stuck and not getting the expected output from this code. first the code functions as a FIFO QUEUE where it takes input from the user and put it at the beginning of a list …

Member Avatar for Bright_5
0
86
Member Avatar for Felonely

I am new here. I passionately need the help of python gurus here to help solve this my statistics analytics problem. I want to write a python code that prompts for an imput. Then saves the new input data into a table of numbers at the last position while it …

Member Avatar for rproffitt
0
76
Member Avatar for TECH COFEE

from tkinter import * app = Tk() label1_text = StringVar() part_label = Label(app, bg='#dfe3ee', text='Check1', font=('bold',12), pady=10, padx=20) part_label.grid(row=0, column=0, sticky=W) label1_entry = Entry(app, textvariable=label1_text) label1_entry.grid(row=0, column=1) label2_text = StringVar() part_label = Label(app, bg='#dfe3ee', text='Check1', font=('bold', 12), pady=7, padx=20) part_label.grid(row=1, column=0, sticky=W) label2_entry = Entry(app, textvariable=label2_text) label2_entry.grid(row=1, column=1) label3_text = …

Member Avatar for zentraders
0
46
Member Avatar for moroccanplaya

hi im using tkinter and have a scroll bar that works with my text widget but its so small i dont know why ?? [CODE] scroll = tkinter.Scrollbar(content,borderwidth=50) Text = tkinter.Text(content,wrap=CHAR, width=50, height=20) scroll.config(command=Text.yview) Text.config(yscrollcommand=scroll.set) Text.grid(row=2, column=1,columnspan=1, rowspan=3, sticky=(N)) scroll.grid(row=2,column=3) [/CODE]

Member Avatar for TECH COFEE
0
2K
Member Avatar for Ethan_145

I'm making a game in Python, where two armies battle each other. The soldiers both spray arrows at each other. But for **each** soldier, there is a 1 in 15,000 chance every frame them firing. One thing I noticed was the FPS dropped from 60 to less than 3. Both …

Member Avatar for toneewa
0
481
Member Avatar for Batkiri

I had scenario where I have to delete the current line if I Have ';' at the end of current line and replace string in the previous line in the text file. Here is an example: Prev line - I am Manish & current Line - I went to college …

Member Avatar for Reverend Jim
0
33
Member Avatar for Amelia5068

Hello, I'm trying to make a login code for my game algorithm but it isn't working as I want it to so can someone help to stop my loops from repeating when I don't want it to please? ``` def login(): username = input("Enter username: ") password = input("Enter password: …

Member Avatar for Schol-R-LEA
0
104
Member Avatar for adisharma

Hello All, I am working on a project which based on python and java both and I am good at java. I want to know which programming language support high database connectivity? According to this [source](https://www.interviewbit.com/blog/java-vs-python/), Java provides stable connectivity but not an idea about python? Can anyone tell me …

Member Avatar for Reverend Jim
0
30
Member Avatar for alicenguyen

I'm working with the code to summarize the text using BERT. I am stopped at the step "loading all pages of the pdf file to the program". My code below just loads only one page. Please help for the instruction. I am a new coder. f= open('/content/Example.pdf', 'rb') pdf = …

Member Avatar for rproffitt
0
17
Member Avatar for fire_munki

Running some v basic scripts with environment variables so I don’t have to hard code things like my api key or id. My code wouldn't run and was failing on authorising so either my id and/or key didn't work. So I just printed out the variables to see where it …

Member Avatar for rproffitt
0
19
Member Avatar for mile.joncevski

Hi guys, I am relatively new to Python and have been working on a calculator application. It is relatively simple, but I would like to share it with everyone here in the group. I hope that there is someone in Daniweb who can guide me through Python. As I read …

Member Avatar for Dani
1
115
Member Avatar for Reverend Jim

My son uses Anaconda so I thought I'd install it so we could collaborate. I downloaded and installed the latest version. When I ran Anaconda Navigator, the first thing it told me was "there is a new version available". That's when I started having misgivings, but I downloaded and installed …

Member Avatar for Reverend Jim
0
103
Member Avatar for palak231

Hi this is Palak, I am in third year of my engineering and my interest and strength is python, to enhance my skills into next level I need more study in this field therefore I want to know which python course will be best for me to enhance my skills …

Member Avatar for Reverend Jim
0
130
Member Avatar for Wee_396

the codes has to include for and while loops. ![pt_2.png](https://static.daniweb.com/attachments/4/9b458f568973a3531e003a18bd1fac3c.png) ![pt_1.png](https://static.daniweb.com/attachments/4/8dbeaea58f539d123c2f49dcce4872c6.png)

Member Avatar for Reverend Jim
0
79
Member Avatar for روان

An image distortion (blurring followed by additive noise contamination) and restoration model is shown as below

Member Avatar for rproffitt
0
39
Member Avatar for Amira_9

Hi All, I need help to understand hoe does this find() works in the case of, find Total occurrences of a substring. This is my assignment question. [Thread 1]

Member Avatar for rproffitt
0
55
Member Avatar for jagathg

I have this simple RandomForest Regression Model which does training and testing and then prints the predictions and model accuracy. I want to write a python automated script for scheduling this code which will do training once every month and testing once every week automatically.

Member Avatar for Reverend Jim
0
29
Member Avatar for ahmad abu lafi

If someone with a mechanical engineering BSc degree wants to have a job in cloud computing, would his mechanical engineering background benefit him in the high-tech filed ?

Member Avatar for rproffitt
0
26
Member Avatar for Encray

it skips line 11-29 it is really annoying can you pls help me to fix my code i am brand new to coding and need help. Thanks calculater_name = 'Tajs Calculator' print("Please enjoy " + calculater_name + "") print("\n") print("Addition = +") print("Subtraction = -") print("Division = /") print("Multiplication = …

Member Avatar for woooee
0
39
Member Avatar for jagathg

I want to split my data in 3 partitions training, validation and test: 70% training, 15% validation and 15% test for regression. Python provides a way to do that only for training and testing by cross_validation.train_test_split. Any Ideas?

Member Avatar for rproffitt
0
28
Member Avatar for Reverend Jim

I discovered, after upgrading to Python 3.10, that wxPython no longer worked. Fortunately, a kind soul at wxpython.org suggested I try installing a snapshot build of wxpython via the command pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython So far my existing wxPython scripts run just fine. If you are wondering …

4
2K
Member Avatar for razstec

Im very new to flask and im trying to convert a python tkinter gui app to web. As you can understand i have all the functions made so it would be great if a could call them and pass variables with a single click of a button. for example: get_sub_menu …

0
55
Member Avatar for Nadir_1

He, i am strugeling whit a problem , i wannel call the ok restrasion botten. but it don't show on the screen. of form i gows over this pies of code in the program. btn_ok_REG = Button(root_reg, height=1, width=7, text='Login') btn_ok_REG.pack() btn_ok_REG.place(x= 100 , y=50) #!/urs/bin/evn python from tkinter import …

Member Avatar for woooee
1
51
Member Avatar for ahmed_101

I work on `sql server 2017` I run script depend on `python language v 3.10` . I need to export data to excel fileStudentExport.xlsx already exist, and keep header without change after export. header of excel file StudentExport.xlsx before export data to it as below `StudentId,StudentName` after run script query …

0
35
Member Avatar for William_75

class Namer (object): def __init__(self, arg): self.arg = arg A = Namer("A") B = Namer("B") C = Namer("C") print(A.arg) print(B.arg) print(C.arg) class FrameIt(object): def __init__(self, content): #Namer.__init__(self, arg) #<-----------? #super().__init__(self, arg) #<-----------? self.content = content #super().__init__() #<-------------------? def framed (self): print(self.content) X = FrameIt(A) Y = FrameIt(B) Z = FrameIt(C) …

Member Avatar for Reverend Jim
0
45
Member Avatar for Laura_16

Write a program that prompts the user to enter two integers, one per prompt. The program should then display the result of dividing the first number by the second number, using integer division so that the answer is an integer quotient, and a remainder.

Member Avatar for 65_Sudhir
-1
432
Member Avatar for Linda_19
Member Avatar for jagathg

> import numpy as np > import scipy.io.wavfile > from scikits.talkbox.features import mfcc > sr1,x1=scipy.io.wavfile.read("filename.wav") > ceps1,mspec1,spec1=mfcc(x1) I can obtain MFCC values as above. Now, I have 100 songs with 2 different music genres(electronic,jazz). And, I want to create a dataset with using these songs. I suppose I will use …

0
29

The End.