All Questions
15 questions
-3
votes
2
answers
55
views
Palindrome using recursion [closed]
Please help me to code correctly in Python.
T = int(input("Number of test cases: "))
for i in range(T+1):
def checkPalindrome(str):
l=len(str)
...
0
votes
1
answer
62
views
python checker lines for json file
I have a json file:
{
"alreadyScraped": [
{
"name": "ahmed Red",
"card_number": "4859430145105235",
...
0
votes
1
answer
1k
views
TypeError: can only concatenate list (not "str") to list create a script that concatenates values
I am trying to create a script that concatenates values in files into columns. But unfortunately I get an error: "TypeError: can only concatenate list (not" str ") to list"
What am ...
0
votes
1
answer
202
views
Using Process.extract in fuzzywuzzy and the all max similar choices for given query and choices
query = ('Hello','bye' , 'yellow')
choices= ('Hello','can', 'sweet' , 'lye' , 'fellow' , 'Hello')
Now I want to use fuzzywuzzy process. Extract() to get the best choice with maximum similarity ratio ...
0
votes
1
answer
137
views
How to store the iteration value for next cycle in python
I am planning to assign incidents automatically in servicenow. This is working fine. But whenever next iteration is running it again stating with first employeeid which i have provided. But i want to ...
0
votes
1
answer
46
views
How can I write simple Pross Pay in Python?
I want ask you about Pross Pay in python . I had some assignments in Coursera and I solved after some times in search on google . I found solution and I solved my assignments ,but I can't understand
...
0
votes
1
answer
285
views
Python html format all select table row
cursor.execute("""SELECT [APPL_NAME] ,[JOB_NAME],[LABE] FROM XYZ)
resultat = cursor.fetchall()
for row in resultat:
html_code = """
...
-2
votes
1
answer
50
views
How do I cut the last characters and save them?
I have a script generator that creates uncompressed public keys. The script works with the "bitcoin" module.
As a result, I get uncompressed public keys that consist of 130 HEX characters.
...
-3
votes
1
answer
298
views
Is there any way to check if there are negative elements on the list and if so remove them?
I have these lines here and I want to write a program that checks if there is a negative number in the list,and if so, remove it.Then, calculate the average of the 2 first elements Can someone help?
...
0
votes
1
answer
452
views
How to extract Email, Telephone, Fax number and Address from many different html links by writing a python script?
I tried this code but it isn't working right (not extracting from all sites etc and many other issues with this). Need help!
from bs4 import BeautifulSoup
import re
import requests
allsite = ["...
0
votes
1
answer
284
views
Python Socket File Transfer Send -While loop error [closed]
While loop error in client.py ,i can't download.How will i fix? I'm using Pycharm. i don't understand loop error and I've been trying for 2-3 hours.I'm trying to fixed loop error but i couldn't. ...
0
votes
2
answers
260
views
Create a function which returns words in the string(REMOVE CHARACTER IN STRING)
example 1: "fogfogfffoooofftreesggfoogfog" -- In this example, I need to remove 'fogFOG' and I should get output as 'trees'.
example 2: "fogFogFogffffooobirdsandthebeesGGGfogFog" -...
0
votes
3
answers
161
views
My simple python game wont work please identify my mistakes
from random import randint
import sys
l2= ["Rock", "Paper", "Scissors"]
computer = l2[randint(0,2)]
wins = 0
losses = 0
player = False
while player == False:
player = input("Rock," "Paper," "...
0
votes
3
answers
190
views
I keep trying to run this program on Python, but I keep getting the same operand error. The error code is coming from the 10th line
This code is not working for me, and I keep getting an unsupported operand type error.
The error code reads TypeError: unsupported operand type(s) for Sub: 'str' and 'str' on line 10
x1 = input(...
0
votes
1
answer
167
views
What is the json file I need to read?
enter image description hereI need to download satellite images using python. I have found a code in GitHub but I did not understand what at this line. Please help me what it exactly is.
Visit https://...