14,949 Topics

Member Avatar for
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
28
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
27
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
48
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
34
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
390
Member Avatar for Linda_19
Member Avatar for nunos

Hi all. I have been doing some HTML scraping and today a fellow coder told me about this thing 'DOM' and how much easier it is to use it rather than manipulating strings as I have been doing. He doesn't know much about it, and that's why I came here …

Member Avatar for r8lst
0
797
Member Avatar for Rocky_6

I'm looking for help on CloudFormation Template for Glue Jobs orchestration for below scenario: Suppose I have 10 AWS Glue Jobs, 4 jobs should be executed parallel and 6 jobs should be executed sequentially. If any job failure, send Workflow "Failure" notification along with the failed Glue Jobname. Job1 Job2----job5-->job6-->job7 …

Member Avatar for rproffitt
0
34
Member Avatar for pop_015

Hi i want make an app with tkinter like this ![Untitled.jpg](https://static.daniweb.com/attachments/4/f96dc3f1f7ce846894ea172755387675.jpg) and when someone click on strat its start main.py and in log print consol (log = terminal) i new in python sry for my bad english :)

Member Avatar for Reverend Jim
0
49
Member Avatar for Arush_1
Member Avatar for Roman_16

I'm building a tool in Python for which I need to read out error codes for specific devices using the Server-Eye API. Server-Eye is our monitoring solution where all of our devices and the devices of our customers are registered. The documentation at https://api.server-eye.de/ wasn't very helpful or I'm just …

Member Avatar for rproffitt
0
53
Member Avatar for rexworth123

I’m trying to create a change machine bored and have no programming experience. If anybody has any suggestions I am open to paying someone to help me with this project. I have some logic controlled hoppers and pulse validator‘s 50 MS on 50 MS off. I just need it to …

0
35
Member Avatar for michellepermsm

I can't get the Test code because I have installed the modules with the pip command but when I run the playtest-m connection command I get the error tests\conftest.py:2: in from mflix.factory import create_app mflix\factory.py:6: in from flask_bcrypt import Bcrypt E ModuleNotFoundError: No module named ‘flask_bcrypt’t’

-1
55
Member Avatar for Jon_4

Hi. I'm trying to convert my python file into pseudo code but I have no idea of how pseudo code work. continueAnswer = input("Please enter either continue to carry on with the program or end to stop it: ") continueAnswer=continueAnswer.upper() while continueAnswer == 'C': while True: try: print('') encodeORdecode = …

Member Avatar for Suman_19
0
23K
Member Avatar for Christian_45

Can you help me.. Accepts the grades for the 4 quarters and compute the final grade consider the requirement. The first 3 quarters must be multiplied by 20%, while the last quarter grade is multiplied by 40%.

Member Avatar for Reverend Jim
0
29
Member Avatar for Venkata subbara

I am using colab and below is the code import pandas as pd import numpy as np import os import csv data = pd.read_file(r'C:\Users\sd3394\Test\CAN_all.csv') data.head()

Member Avatar for Reverend Jim
0
63
Member Avatar for Hugh Nelsons

import random money = 0 finmoney = 0 turns = 0 colturns = 0 finturns = colturns + turns print(""" 1 2 3 4 5 6 7 8 9 10 red black every guess = - 1$ every colour = - 5$ every correct = + 10 The goal is …

Member Avatar for JamesCherrill
-1
61
Member Avatar for razstec

Hi, im trying to set a radio and youtube playlist player my code works with radio and single youtube link but with playlist it says that the link is unrecognized, can somoene help? import os from os import path from random import randrange from tkinter.ttk import Combobox import pafy import …

Member Avatar for razstec
0
172
Member Avatar for Anusha_11

Assume the list numbers 1 has 100 elements, and numbers 2 is an empty list. Write code that copies the values in numbers 1 to numbers 2. I would like to have a program of this question from python, chapter 7 - list and tuples

Member Avatar for Reverend Jim
0
114
Member Avatar for gneisler

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 = [] …

Member Avatar for Anthony_49
0
2K
Member Avatar for Napoleon_1
Member Avatar for Crona

I have a homework assignment that im not really sure how to approach as of right now, I've done some research but. I have not found really anything that would pertain to what I'm doing. Any help would be appreciated <3 . So far this is what I have: /****************************************************************************** …

Member Avatar for DGPickett
0
235
Member Avatar for archiejude04

Ive created a snake game with the help of a tutorial and i want to create a pause function for my program however, every other tutorial and website i looked at hasn't really helped, can someone help me figure out how to pause my game?

Member Avatar for Reverend Jim
0
333
Member Avatar for Youcef_4

Hello, I am trying to install paramiko on a linux instance running on docker. However, I keep getting the same error: Failed building wheel for cffi

Member Avatar for rproffitt
0
43

The End.