15,181 Topics

Member Avatar for
Member Avatar for Roudha

Vending machine is a machine which dispenses goods/items such as snacks, soft drinks, chocolates, cookies, chips and other selected items to customers automatically, after the customer inserts currency or coins into the machine. The project is required to design, implement to simulate a vending machine. The program will work with …

Member Avatar for rproffitt
-1
916
Member Avatar for Mike_63

Can you please help me with write a python program to read five scores and output the average score and also output the amount by which that score differes from the average. I have done the average part but I don't know how to get the difference of all the …

Member Avatar for Reverend Jim
0
309
Member Avatar for Amanda_11

Hello All, I am working on a python project that helps pull random names from a list in excel and saves them to a new excel file. The input file shows all of the names of the people who can work on that task. I am able to run the …

0
259
Member Avatar for vegaseat

This code shows how to obtain and display a GIF image from an internet website using the Tkinter GUI toolkit that comes with the Python installation.

Member Avatar for woooee
4
25K
Member Avatar for Jordan_15

**hey guys, im trying to get this program done for class. this is the assignment:** For this assignment, you will write a program that uses a method called displayMenu to display a menu like the following: Enter 1 to convert a string to uppercase Enter 2 to convert a string …

Member Avatar for woooee
0
436
Member Avatar for creeperdetonater

I am creating a program in python for a artificial intelligence for chinese checkers, but i cant even get the board to be portrayed! I am using this code: `Code` from tkinter import * root = Tk() board = PhotoImage(file="board.ppm") root.mainloop() I get the error as follows: Traceback (most recent …

Member Avatar for rproffitt
0
621
Member Avatar for Dolphin0

Hi, I have been searching for freelance software developer on different websites for a while but failed to find him for the software I need. Been studying and researching a lot how could i come as close as possible to the solution i am looking for: what needs to be …

Member Avatar for rproffitt
0
311
Member Avatar for tony75

Hi I have python code that can list all drive letters but now I need also list the name of drive letter (Label) and the size of hard drive like below! Ltr Label Size ---- ------ --------- C Windows 800 GB E Local Disk 200 GB F My Passport 500 …

Member Avatar for tony75
1
7K
Member Avatar for Mo_3

Hi, I've been doing research on a career in coding/programming and now I'm very interested and motivated to learn it. I'm a complete beginner and limited financially at present. So I'm confused as to how to go about it. I love reading a lot and sitting on my laptop, so …

Member Avatar for deutnukem
2
744
Member Avatar for Parker_3

Hi guys so ive been taking a python 3 class this semester and im having some trouble. so here is the problem. Create a python script that stores 20 random integers from 1 to 100 into a file delimited (ie. seperated) by commas (,). For example; if you cat the …

0
180
Member Avatar for Nancy_16

I am using PySide2 for GUI. I have a "Rename Project" QAction. The function must be like this: 1. set enable to false if tab name is "*Untitled" or file is unsaved. 2. set enable to True if file is loaded. How to do this? 3. Whenever switching to tab, …

Member Avatar for jacklin
1
1K
Member Avatar for tony75

Hi I try to upload my picture to local server via FTP Batch file I created script.batch which is contain open 127.0.0.1 Tony 123abc #cd public_html lcd C:\xampp\htdocs lcd XAMPP Shared Folder binary mput C:\Users\Laptop\Desktop\XAMPP Shared Folder\AboutMe.jpg bye I have also another script(upload.batch) which is contain `ftp -i -s:script.bat` When …

0
364
Member Avatar for zoro007

Hello, I created html file with Checkbox and i use python when i check one box and submit i have problem with list when i check 2 box or more and submit i see the result list like ['120', '104', '12'] i can use "for" to loop the list and …

Member Avatar for zoro007
0
303
Member Avatar for Nivek90

I have a file that contains flow statistics from a switch. This is a big file with alot of values I would like to print out the statistics based on user input. I'm having a hard time to figure out which way is the most efficient, using a dictionary or …

Member Avatar for Peleg
0
379
Member Avatar for Ankit_30

Hello, here is my code: import tkinter as tk import tkinter.font as tkFont from tkinter import ttk from tkinter import * root = tk.Tk() pressed = False class Example(tk.Frame): def _create_circle(self, x, y, r, **kwargs): return self.create_oval(x-r, y-r, x+r, y+r, **kwargs) tk.Canvas.create_circle = _create_circle def __init__(self, root): tk.Frame.__init__(self, root) self.customFont …

Member Avatar for rproffitt
0
458
Member Avatar for stevie1da

Hi! My name is Steven and I am a computer science student. I've been working on a project recently (just for fun, practice, and because I was bored lol). I need some testers. It is a game engine for developing text based games in python (3). As of now, it …

0
222
Member Avatar for rajesh_32

Hi i am having a code to check the input and output rates of ports on few cisco mds switches. i will be saving yesterday and today values to two separate csv files. I am trying to write a python code where it will check the difference in values and …

Member Avatar for rproffitt
0
614
Member Avatar for Cisco_1

Hi guys : Any help with this please! script1.py in 192.168.1.10 x = 10 script2.py in 192.168.1.20 if x == 10: print x else: print "sorry" how can apply this between two scripts in same network. Thanks for all

Member Avatar for rproffitt
0
552
Member Avatar for novice20

[B]Hi all.. I need to do a condition check in a script. The same condition check needs to be repeated in another script. So, I am looking for a way, where i can set, say a flag in the first script ,upon meeting the condition, and be able to access …

Member Avatar for Cisco_1
0
37K
Member Avatar for anbujeni

![Untitled_spreadsheet_Google_Sheets.png](/attachments/small/2/57c66e06439c72d5acbb2b9623cf737a.png "align-left") I have column A and Column B. I need to create new column C by iterating through Column A and B and if value in Column A is same then merge value in Column B.

0
211
Member Avatar for ALosh99

I am trying to calculate some thing called directional derivatives of a vector b (which defined in attached file as an example) to calculate the directional derivatives of the vector b . the result of the example is also in the attached file. I serached in goolge to find how …

Member Avatar for ALosh99
0
1K
Member Avatar for r3bol

I made a scraper for a web site, but I'm having problems runninf my code... #!/usr/bin/env python from bs4 import BeautifulSoup import urllib2 import re # Get the links... html = urllib2.urlopen('http://www.blah.fi/asdf.html').read() links = re.findall(r'''<a\s+.*?href=['"](.*?)['"].*?(?:</a|/)>''', html, re.I) links_range = links[6:len(links)] # Scrape and append the output... f = open("test.html", "a") …

Member Avatar for happygeek
0
6K
Member Avatar for davy_yg

Hello, This is my first time using Python. I only know the basic syntax of python but I never actually run the code itself. Therefore, I am trying to figure out how to install Python web server on localhost ? I have this installer - GoogleCloudSDKInstaller When trying to install …

Member Avatar for techbeamers
0
658
Member Avatar for lancelot_1

import requests.packages.urllib3 requests.packages.urllib3.disable_warnings() from flask import Flask from flask import request import requests from requests_toolbelt import MultipartEncoder import requests app = Flask(__name__) import requests import json from datetime import datetime botEmail = "" # botun email adresi accessToken = "" # Botun access tokeni host = "https://api.ciscospark.com/v1/" # CISCO Spark …

Member Avatar for rproffitt
0
326
Member Avatar for Carl_5

I am trying to take a user input from an entry input and display it back to the user in a simpl text widget. I have implementing a label but apparently that's a bad idea for what I desire. Ultimatley, I'd like my gui to look like this: User: Hey …

0
170
Member Avatar for Jack_44

I'm trying to compare 2 different CSV files, mark those differences respectively, then produce it as an output. However, my code seems to be only reading the last part of the lines from sample1.csv and sample2.csv as you can see below: Sample1.csv Planet,Account,Name,Station,City Earth,1234,Pete,Nebula,Phoenix Earth,1234,Pete,Nebula,Phoenix Earth,1234,Pete,Nebula,Phoenix Sample2.csv Planet,Account,Name,Station,City Earth,1234,Pete,Nebula,Wakanda Earth,1234,Pete,Nebula,Montgomery …

Member Avatar for Ramij
0
1K
Member Avatar for ALosh99

How can I calculate the average weight in python for two columns (x,y) data file, between 8<r< 9. in python I have tried this put it dose not work with my np.average(X,Y, weights=[8,9]) I have calculated the average weight which is 12.14, now I am trying to use this weight …

Member Avatar for vaishali_2
0
314
Member Avatar for ALosh99

I have two array data files. I want to add weight function to these two array which I ploted see attached file. what I am trying to do now is use the weight function below, for two data set and select the points between 8<r <9 in each data then …

Member Avatar for ALosh99
0
142
Member Avatar for Joe_40

Just wondering how you would add user input from within the program into a drop down bar for future use.

Member Avatar for rproffitt
0
172
Member Avatar for davy_yg

Hello all, I am quite impress knowing that Python has been the most popular programming language in July 2018. Check this statistic: https://pypl.github.io/PYPL.html It looks like there is a changing in trends - in 2015 PHP is rank no 2 and now rank 4. While Python rank 3 moves up …

Member Avatar for rproffitt
1
462

The End.