15,181 Topics

Member Avatar for
Member Avatar for Wis_874

import requests endPoint = 'https://api.mnotify.com/api/template' apiKey = 'YOUR_API_KEY' url = endPoint + '?key=' + apiKey response = requests.get(url) data = response.json();

Member Avatar for rproffitt
0
28
Member Avatar for colby.christensen

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 …

Member Avatar for Reverend Jim
0
4K
Member Avatar for razstec

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 …

Member Avatar for razstec
0
84
Member Avatar for Frank_43

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()

Member Avatar for rproffitt
0
53
Member Avatar for usdblades

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 …

Member Avatar for Theofanis
0
2K
Member Avatar for Reverend Jim

# 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 …

Member Avatar for Reverend Jim
1
976
Member Avatar for bboycage

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 …

Member Avatar for Dani
0
22
Member Avatar for aditi_13

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 …

Member Avatar for bboycage
1
286
Member Avatar for liye_wu
Member Avatar for arunsolo1984

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**

Member Avatar for rproffitt
0
40
Member Avatar for razstec

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() …

Member Avatar for razstec
0
336
Member Avatar for Liam_12

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 …

Member Avatar for Reverend Jim
1
902
Member Avatar for razstec

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 …

Member Avatar for Schol-R-LEA
2
503
Member Avatar for Nissim

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.

Member Avatar for rproffitt
0
24
Member Avatar for aphry1303

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.

Member Avatar for yqqwe123
0
292
Member Avatar for DB12

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 …

Member Avatar for yqqwe123
0
196
Member Avatar for ミツキ 上野

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 …

Member Avatar for Dani
0
38
Member Avatar for soibac

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 …

Member Avatar for RespectedCow
0
10K
Member Avatar for Harry cruise

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 …

Member Avatar for Schol-R-LEA
0
305
Member Avatar for razstec

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 …

Member Avatar for Schol-R-LEA
0
488
Member Avatar for Linda_15

I work in IT as a UNIX Systems engineer and I am studying towards a BSc IT degree.

Member Avatar for jwenting
0
78
Member Avatar for Chegofatso

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 …

Member Avatar for rproffitt
0
51
Member Avatar for Chandru_3

Hi..I'm doing pycharm project and I have Dought on how to connect login page GUI and main project GUI?..

Member Avatar for rproffitt
0
40
Member Avatar for Ranjan_3

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

Member Avatar for rproffitt
0
36
Member Avatar for DEEPAK_76

Write a python program to use the recursive function such that: If input is given: 3, then output should be 300.

Member Avatar for rproffitt
0
36
Member Avatar for Urbandude23

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 …

Member Avatar for Prragya
0
5K
Member Avatar for Yuvaraj_1
Member Avatar for razstec

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 …

Member Avatar for Husoski
0
103
Member Avatar for 13_503_Etiraz I

# 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()

Member Avatar for rproffitt
0
48
Member Avatar for Mr_281

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

Member Avatar for razstec
0
41

The End.