14,952 Topics

Member Avatar for
Member Avatar for kimvibar51

Using for loop create a program that converts temperature either from Celsius to Fahrenheit or vice versa. Ask the user what will be the input of the user either in Celsius or Fahrenheit. If the input is invalid, print invalid and ask to try again. Ask the user to input …

Member Avatar for rproffitt
0
80
Member Avatar for Essam_6

print("Enter number of columns:",end=" ") cols=int(input()) print(cols) print("Enter number of rows:",end=" ") rows=int(input()) print(rows) print("") side="right"0 print("[5][5] is cleaned") for i in range(rows): if side=="left": for j in range(1,cols): print("Move forward") print("[{i}][{j}] is cleaned".format(i=i,j=j)) else: for j in range(cols-2,-1,-1): print("Move forward") print("[{i}][{j}] is cleaned".format(i=i,j=j)) if(i!=rows-1): if side=="left": print("Turn right") print("[{i}][{j}] …

Member Avatar for rproffitt
0
45
Member Avatar for arvind_m

I am a Data Science Enthusiast, Currently Exploring Different Types of Programming Languages.

Member Avatar for Reverend Jim
0
26
Member Avatar for dimitrilc

## Introduction ## Although not included in the headlines, the release of JDK 17 also added 3 sets of new methods to the class `java.lang.Process`: 1. `inputReader()` to read from stdout. 2. `inputWriter()` to write to stdin. 3. `errorReader()` to read from stderr. In this tutorial, we are going to …

3
1K
Member Avatar for systemprox

I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on these objects, and the other programs to access the objects through …

Member Avatar for rproffitt
2
89
Member Avatar for razstec

Anyone know why this is not adding borders to my sheet? thick = Side(border_style="thick", color='FF0707') ws['F1'].border = Border(top=thick, left=thick, right=thick, bottom=thick) for row in ws['A1:D10']: for cell in row: cell.border = Border(top=thick, left=thick, right=thick, bottom=thick)

Member Avatar for Reverend Jim
0
37
Member Avatar for razstec

i have this line to set the background color of a cell but instead of the color i specified it set the cell to black. Tried with diferent colors to check and it always set it to black. why is that and how to fix it? ws['A1'].fill = PatternFill(fgColor="7FFFD4", fill_type="solid") …

Member Avatar for razstec
0
114
Member Avatar for Sachin_35

I need to create a script in python to unmute speaker, if it is mute. The Scripts will check if speaker is in mute, if it is in mute than it will unmute it. If it is unmuted already, than it shouldn't do anything.

Member Avatar for rproffitt
0
36
Member Avatar for gdtraveller

Hi everyone, I've been researching various python libraries to extract data from pdf files. Currently, I'm exploring PyMuPDF After installing it, I try to run a basic script to get the number of pages in the pdf file. However, the following runtime error occurs. File "/usr/local/apps/PyMuPDF-1.18.17/fitz/fitz.py", line 1281 def is_rectangular(self) …

Member Avatar for Reverend Jim
0
83
Member Avatar for mouigher

I'm not very good at Python as you can tell from my earlier posts. I'm trying to write a payroll program that gets the input from the user of how many hours worked and the hourly rate and calculates the total wages for the week. It also has to figure …

Member Avatar for Minasa
0
3K
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
879
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
237
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
39
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
326
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
864
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
492
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
252
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
194
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
37
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
482

The End.