473,543 Members | 4,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
1,435
thread by: nishank05 | last post Sep 4 '18 by: nishank05
I want to integration CC Avenue payment gateway with Flask. Is there a ready made library for that or is there a way I can do it. Seems CC Avenue officially supports ASP, ASP.net JSP and PHP only. Any help will be highly appreciated. Best regards.
1
1,883
thread by: Sekouga | last post Aug 18 '18 by: zmbd
In below entry I missed the quotation mark after name.txt. How to go back and put it. >>> file = open('name.txt, mode='w') It should be like below >>> file = open('name.txt', mod='w') Thanks
0
1,783
thread by: ub0001 | last post Aug 17 '18 by: ub0001
Is there any library available in python so that i can add a digital signature in pdf document using certificate file in python (version 2.7) I will use this in a django project
2
1,364
thread by: jhon123 | last post Aug 17 '18 by: jhon123
I have nested list below as test_data which is my input also and expected_data is the formatted output my question now is how to get expected output from test_data. ###Input given test_data = , , ] ###Expected Output --
1
2,176
thread by: azharuddin1 | last post Aug 6 '18 by: zmbd
This is the results from python2.7. >>> re.sub('.*?', '-', 'abc') '-a-b-c-' The results I thought should be as follows. >>> re.sub('.*?', '-', 'abc') '-------' But it's not. Why?
0
1,405
thread by: mavecnirp | last post Jul 24 '18 by: mavecnirp
I am currently working on a project and I have been stuck in exporting a table from the servicenow website using the code below, it is returning a URL redirection instead of the CSV. url = "https://url.service-now.com/nav_to.do?" \ "uri=server_list.do?sysparm_query=active=false%26CSV" response =...
0
4,395
thread by: xxxzeusxx | last post Jul 22 '18 by: xxxzeusxx
Hey, Im new to python and trying to code a script which should enable/disable usb using winreg. Whats wrong in this code code: import winreg def usbenordis(value): try: keyval=r"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor" if not os.path.exists("keyval"): key =...
1
1,381
thread by: ChipsSlave | last post Jul 21 '18 by: dwblas
Hello all, A script should open an application with two buttons visible. When Hello button is pressed a new button is gridded into the row number 1 and Hello button to be deactivated. When this new button is pressed it should delete itself off the grid and reactivate hello button but it does not do it. Any ideas? Please check the video to...
0
1,186
thread by: purnendu03 | last post Jul 19 '18 by: purnendu03
I have a list of dictonary I need a result like How can I achieve this?
1
1,981
thread by: IvanH | last post Jul 16 '18 by: Andrea1701
Hi, I'm trying to use STS to access OSS as described here. My scenario is following: 1) Client react app calls FC Compute Function via API Gateway and submit some information 2) Function validate the information and if it is ok then function calls sts.assumeRole and specify permission to GET* for all resources in OSS using AccessKeyId and...
1
1,497
thread by: IvanH | last post Jul 12 '18 by: dwblas
Hello, when I try the Full-Site CDN I get this message: Currently you can not add Full-site domain now. It'll be reopened soon. We apologize for any inconvenience caused during this time When is it going to be available ¿?
0
1,265
thread by: kiderburm | last post Jul 10 '18 by: kiderburm
i would like to know position of color EX. i draw rectangle (10,10) to (256,256) green color and i print(img) >> but i need to know where position is if i have the image some point is green but i don't know position import cv2 import numpy as np img = cv2.imread('BG-Black.jpg')
1
1,721
thread by: Rakibul | last post Jul 9 '18 by: Rabbit
I am new at python...I write this code. This is a uri problem and problem no 1478.Here the uri problem link:https://www.urionlinejudge.com.br/judge/en/problems/view/1478 My code: while(1): N=int(input()) if(N==0): break mainlist= for i in range(0,N): sublist=
0
1,259
thread by: ZenWoR | last post Jul 6 '18 by: ZenWoR
down vote favorite I was wondering about for some time should I show my (should I say) first Python project that has a little bit of usage, not that much, but it may be valuable for someone, you don't know. My project is about scraping prices from certain product on eBay. It uses BeautifulSoup and Requests to take out prices of product, on...
0
1,431
thread by: bay2018 | last post Jul 3 '18 by: bay2018
class UniqueNumbers: @staticmethod def find_unique_numbers(numbers): return None print(UniqueNumbers.find_unique_numbers()
0
1,607
thread by: prkundan | last post Jul 3 '18 by: prkundan
How to install Jython in NetBeans IDE? It is not appearing in Installation list.
1
1,667
thread by: ajay sahare | last post Jul 2 '18 by: Rabbit
hello all, Anyone help me to understand how machine learning are implemented in real world. like Google, Amazon etc how they gather user's data and what is the process (application) to store our data.
2
1,545
thread by: ariane92 | last post Jun 29 '18 by: dwblas
Hi I have a large data file and I'm only interested in rows with specific x values of 4.125 as shown below. Now because the value of 4.125 relates to the stop position of the ion, the corresponding start position is also of interest to me and I want to keep this information in the array. How do I write a program which effectively finds the x stop...
0
2,359
thread by: nanduj | last post Jun 26 '18 by: nanduj
can you explain me with an example to run perl script from python
0
1,734
thread by: aazzaa | last post Jun 24 '18 by: aazzaa
i have a set of 400 scietific article in docx file formt. I need to clen them by extracting the introduction the methods and the discussion. but the problem is that those parts may contain some tables or figures and I am not in need for them anyone can help me with a code
0
1,511
thread by: DilipHN | last post Jun 21 '18 by: DilipHN
I want to write a python program to calculate the hydrogen bond auto-correlation function. Here is the description in the image format. I want to write a code for the equation 1 and 3. How can i proceed here..?? Any suggestions on this are highly appreciated. Thank you.
3
3,084
thread by: mcdermottbobby | last post Jun 20 '18 by: Rabbit
d = {'k1':]}]} how would you grab the string 'hello' from this dictionary and why? Thanks!
2
11,784
thread by: mcdermottbobby | last post Jun 19 '18 by: mcdermottbobby
list3 = ] I know the solution to this is: list3='goodbye' Why is this the solution? I don't understand why that is the answer and would appreciate an explanation, thank you!
2
3,755
thread by: erika0193 | last post Mar 2 '20 by: evanbung
Below is the pasted part of my code that is coming up with the error "SyntaxError: Expected Indented Block". def findRain(allData, target): '''Uses a binary search to locate rainfall amounts in mm from the supplied list of dictionaries. target is a date in the 'yearmonth' value format. The function assumes that the list...
4
2,224
thread by: rayisalive | last post Jul 1 '18 by: husoski
I have a file containing 10,000 words which I import as strings and store in a list. Now, I have another list of strings and have to delete the common words in both lists. When I try to run the program, it takes a lot of time. Please let me know if there's any other way to do it. For now, I am using: For item in list_1: If item in...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.