15,181 Topics
| |
import requests endPoint = 'https://api.mnotify.com/api/template' apiKey = 'YOUR_API_KEY' url = endPoint + '?key=' + apiKey response = requests.get(url) data = response.json(); | |
Years ago I wrote a program in Fortran for a structural analysis class. At the time I had very little programming experience and mottled my way through the assignment. Fast forward to now and I'm attempting to teach myself Python 3. I figured I'd would try to convert the old … | |
Hi have this loop but insted of send the correct value in the button it always send the original value this creates the buttons named from 0 to 9, but when i run the button it always prints 8 insted of 8,9,10 etc... from tkinter import * from tkinter import … | |
I was wondering how to make a paint program exclusively from graphics.py not tkinter.py Here is my code by I don't know how to continue it from graphics import * win=GraphWin('Buffet Hot Pot',1200,800) win.setBackground('whitesmoke') while True: click=win.getMouse() clickX=click.getX() clickY=click.getY() | |
I just started learning Python Last Night and I am curious of how to put a pause at the end. I did the Famous Hello World Program and when saved and Executed it seems like it runs and closes before I can even read the text. I tried raw_input("Press ENTER … | |
# Comparing two videos side by side I have been creating walk-through videos on the cheap by just wandering through an area with my little Sony camera. Lacking a steady-cam I just try to hold the camera as steady as possible. Fortunately, with the proper (free) tools I can still … | |
Hi, I'm bboycage and I work as a Data Analyst / Data Scientist at a Financial Consulting company. Python is my main language, had to learn SAS because of my job, along with the 1992 version of ANSI SQL as available through PROC SQL. I've also taken up Java on … | |
I am new to python dataframes so please help me do a merge on pandas dataframe. df1 custid custname email phone x tina z.gmail.com 345-345-3456 y mina z1.gmail.com 445-345-3456 z zina z2.gmail.com 555-345-3456 q pina 233-456-3456 df2 custid custname email phone x tina z.gmail.com 345-345-3456 y xina z1.gmail.com 445-345-3456 k … | |
How to fix the following error? NewBie **Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address (polkit-error-quark, 0) httpd,reload=yes,status=0** | |
Got this to open a browser inside a specific frame, and i need it to be changeable, any ideas? been readin pyqt5 but cant seem to manage this import sys from tkinter import Tk, ttk from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtWebEngineWidgets import * mainwind = Tk() … | |
I have been looking for a good way to embed vlc in a python tkinter frame. I found a script on stackexchange that does the basic work, but - to embed the vlc in a frame - the script relies upon an oop technique I have asked about before but … | |
Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got so far but cant seem to populate my code in order to build the tables with the specific data from … | |
I am a real-time programmer, currently working for Proprio - a small medical device start-up. I work with C++, C# and Python on Windows. | |
from sympy import Symbol, Derivative, cos import math pi= math.pi t= Symbol('t') function_t = 2*cos(2*math.pi*t)*2.718**(-(math.pi*t)/2) f1 = (function_t.doit().subs({t:1.5})) print("When t=1.5,", f1) I can't find a way to calculate cos in degrees in this function. | |
| I am trying to connect MySQL(8.0.25) and python(3.8) using mysql.connector but getting the error: mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Windows 10 same code working for pymysql.connect the code used: import mysql.connector as sql s=sql.connect(host='localhost' ,user='root', password='<correct password>) The password I entered is the one … |
i really dont know why it does this, it only started doing it when i added the [i] for more than one player. from the very small window at the end i can see that my code works and it has implemented the "aliens" but its still blank. i thought … | |
Hi all, I have 2 form and a main.py in the project: ffrend.py and fmain.py main.py: from PyQt4 import QtCore, QtGui from fmain import * if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() app.exec_() fmain.py (there is a button to execute … | |
A grayscale digital image is a two-dimensional raster image in which the picture elements, or pixels, store a single value representing a shade of gray that varies from black to white. In a discrete grayscale image, the shades of gray are represented by integer values in the range [0 to … | |
I would like through a list or dict populated by a text to create a frames, this way I could update an app without having to mess with the code, can someone help me? Seria algo assim: vars.txt: > tab1 <-> nome1 > tab2 <-> nome2 > tab3 <-> nome3 … | |
I work in IT as a UNIX Systems engineer and I am studying towards a BSc IT degree. | |
Write a Python function called sumList () which will receive a list of integers as input parameter. sumList() must: a) Print the list b) Sum all the numbers in a list and print the total. The main section of your program must: c) Ask the user how many numbers the … | |
Hi..I'm doing pycharm project and I have Dought on how to connect login page GUI and main project GUI?.. | |
Python code for detecting monkey using raspberry pi and if it is detected then a signal has to send to power amplifier to generate sound | |
Write a python program to use the recursive function such that: If input is given: 3, then output should be 300. | |
| I am trying to run my game in Python, with Pygame. However, I am presented with a black screen, but my game shows up for a fraction of a second after I exit the Shell. What's wrong with my code, I think it's an issue with my timer. # Import … |
python programming to print count of prime and composite numbers untill a number n | |
Im new to python , trying to update my self from the time of ASP Classic. In that time i use to have a page for vars that i included in my main page. I like that method because i can keep all my vars organized. I tried to do … | |
# Importing import sklearn from sklearn.datasets import load_boston import pandas as pd import matplotlib.pyplot as plt # Load the dataset bos_hou = load_boston() # Create the dataframe column_name = bos_hou.feature_names df_boston = pd.DataFrame(bos_hou.data) df_boston.columns = column_name df_boston.head() | |
Assume you given this list factList=[3, 5, 7, 9], write an algorithm and Python program to calculate the factorial for each element in this given list |
The End.