15,175 Topics
| |
Write a python program to sending a warning message to parents and faculty because of students get attendence below 75% | |
Hi, I am using Python Tkinter and I want my pictures to fade in and fade out before or after the next picture. How can I put a fade in and fade out in my source code below. Thank you def start(): global i, show if i >= (len(images) - … | |
size = 10 for i in range(size) : for j in range(size) : if(i == j or size - j == i + 1) : print("* ", end = "") elif(i == size/2 - 1 or j == size/2 -1 or i == size/2 or j == size/2): print(" ", … | |
Write a Python class, Person, constructed by name, surname, birthdate, address, telephone number, email. The class has methods to calculate the age of the person using his birthdate and also to display the details of a person. Create instances of the class and test the associated methods. | |
Hi, Im creating a canvas and inserting an image. I'm using bind to move the image with my mouse. It works, but whenever I add another image, it doesn't work. When I try to move any images, only image1 moves and image 2 dissappears. Any ideas would help, thanks Here's … | |
class Employee: def __init__ (self, name, basic, house): self.name = name self.basic = basic self.house = house self.nhif = (2/100)* self.basic self.tax = (30/100) * self.basic def gross_income (self): return (self.basic + self.house) def total_deductions (self): total_deductions = (self.nhif + self.tax) return (self.total_deductions) def net_salary (self): net_salary = (self.gross_income - … | |
Suppose user selfies are saved locally in the format "name-ucode", where ucode is a unique code for that user. For example, for a user called Paul, his selfie will be saved as "paul-12345.jpg". Write a function which takes in the selfie name and returns the unique code. For example, the … | |
im trying to create and algorithm in python but i created it in C++ instead as i don't know python well enough i know it's easy and i can learn it in one day or two it's just the syntax but i don't have the time to learn python right … | |
So, I’m trying to capture and store wave height data and cache it in a file based on the fetch timestamp in local time. I have hit an error with the last section. Here is the error - d = sorted(data['hours'], key=lambda i: i['time']) TypeError: list indices must be integers … | |
I want to know how to create a software | |
I have a Python file with 50+ frames. Each frame has 5 radio button and 1 textbox. Each radio button has a pre-determine numeric value that will print to textbox. What I would like to do is replace the radio buttons with a combobox. the combobox is set up with … | |
#include<conio.h> #include<cstdlib> #include<windows.h> using namespace std; oustrup"<<endl; cout<<"b) Dennis Ritchie"<<endl; cout<<"c) Ken Thompson"<<endl; cout<<"d) Brian Kernighan"<<endl; choice=getch(); if(choice=='A'||choice=='a'){ cout<<choice<<" is correct Answer"<<endl<<endl; st.marks++; } else{ cout<<choice<<" is incorrect Answer"<<endl; cout<<"The corrent answer is a"<<endl<<endl; } break; case 4: cout<<i+1<<") A language which has the capability to generate new data types … | |
I am searching for new technologies and to improve my logac | |
I want create a software just like an alarm clock. It will paly an audio file repeatedly till did not press esc key. What command should I give as conditions and whoch module should I use? | |
the error : AttributeError: 'str' object has no attribute 'png' ![Sans_titre.png](https://static.daniweb.com/attachments/4/234f232adcc4460a505900ed750330c6.png) | |
(a) Create a class named LivestockProject with fields that hold a membership number, the name of the member, surname, date of birth, gender, location and initial number of livestock (cattle) turned in. Include a constructor that initializes each field to appropriate default values. Also include methods to set and get … | |
Hello All, I just want to know what the average salary of python developer in india and Can anyone know which country gives the most salary? | |
Hello, I want to call the function from a python file. By googling, it looks like I need to use the following function. I added a "Sample.py" in the same place where the exe is stored for the c++ . int main() { Py_Initialize(); // Create some Python objects that … | |
Which is the best user-friendly programming language to be used for developing an ecommerce website? | |
I am trying to run my local bash script on remote server without copying it into remote server. It is as simple as following for test purpose. There are more than a few servers where it runs perfectly, but in some server running tcsh as default, there is an issue. … | |
Hi , I am new to python. I am trying to have a logrotate feature and also try to print the logs in formatted fashion. So I have created two handlers one for log roataion and other for log formatting. The log rotation is working fine as alone, but as … | |
Hello everyone, I am writing a program that has a part where the user can type in notes, and I would like the program to insert the date and time into the beginning of the note. I have the time and date part figured out: [CODE] import datetime now = … | |
[root@codegaurd]# cat runplaybook.py import subprocess subprocess.run(['ansible-playbook', 'main.yml', '--ask-vault-pass']) [root@codegaurd]# python3 runplaybook.py Vault password: I have to pass it in same code when prompted. I do not want to change the ansible command as passing the password file , script etc doesnt suit for my use case. i can hardcode in … | |
import math import numpy as np import matplotlib.pyplot as plt print("y = a^x + b") jarda=0 while jarda<=0 or jarda==1: jarda=int(input("zadej a ")) def v() : while True: číslo=(input("zadej b ")) try : return int (číslo) except ValueError print("nebylo zadané číslo") barca=b() A = int (input("zadej počáteční hodnotu def.oboru ")) … | |
GUESSING GAME HERE please help im new in this python programming 1. This is a game that allows a user to play guessing one single number to try to win at a maximum of 3 attempts. The possible numbers to win must be stored in a list or tuple or … | |
nlp = spacy.load("en_core_web_sm") Error found OSError Traceback (most recent call last) <ipython-input-3-8d092272a28e> in <module> ----> 1 nlp = spacy.load("en_core_web_sm") ~\anaconda3\lib\site-packages\spacy\__init__.py in load(name, disable, exclude, config) 45 RETURNS (Language): The loaded nlp object. 46 """ ---> 47 return util.load_model(name, disable=disable, exclude=exclude, config=config) 48 49 ~\anaconda3\lib\site-packages\spacy\util.py in load_model(name, vocab, disable, exclude, config) … | |
Hi! When I am running this code, the output looks how I expected it to be, but the problem is that I cannot go back to home page whenever I want to. I dont know why but when I tried to go back to home page after visiting the tips … | |
What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )? | |
The End.