Click here to Skip to main content
15,796,456 members
Home / Discussions / Python
   

Python

 
PinnedForum Guidelines - PLEASE READ Pin
Chris Maunder5-Oct-22 13:14
cofounderChris Maunder5-Oct-22 13:14 
QuestionI need python code for multiple page pdf extraction Pin
Deepak Vasudevan 20236-Nov-23 18:35
Deepak Vasudevan 20236-Nov-23 18:35 
AnswerRe: I need python code for multiple page pdf extraction Pin
Dave Kreskowiak6-Nov-23 19:06
mveDave Kreskowiak6-Nov-23 19:06 
JokeRe: I need python code for multiple page pdf extraction Pin
Richard Deeming6-Nov-23 22:30
mveRichard Deeming6-Nov-23 22:30 
AnswerRe: I need python code for multiple page pdf extraction Pin
Richard MacCutchan6-Nov-23 22:38
mveRichard MacCutchan6-Nov-23 22:38 
AnswerRe: I need python code for multiple page pdf extraction Pin
Gerry Schmitz8-Nov-23 6:31
mveGerry Schmitz8-Nov-23 6:31 
AnswerRe: I need python code for multiple page pdf extraction Pin
Andre Oosthuizen10-Nov-23 7:36
mveAndre Oosthuizen10-Nov-23 7:36 
QuestionWhat is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
s yu12-Oct-23 7:44
s yu12-Oct-23 7:44 
AnswerRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming12-Oct-23 22:45
mveRichard Deeming12-Oct-23 22:45 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
s yu13-Oct-23 4:17
s yu13-Oct-23 4:17 
AnswerRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Alisha Aalu5-Nov-23 22:49
Alisha Aalu5-Nov-23 22:49 
SuggestionRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming5-Nov-23 23:54
mveRichard Deeming5-Nov-23 23:54 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Alisha Aalu7-Nov-23 22:51
Alisha Aalu7-Nov-23 22:51 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming7-Nov-23 22:56
mveRichard Deeming7-Nov-23 22:56 
QuestionFLAMES game in python Pin
ganga devi 20237-Oct-23 21:20
ganga devi 20237-Oct-23 21:20 
AnswerRe: FLAMES game in python Pin
Richard MacCutchan7-Oct-23 22:38
mveRichard MacCutchan7-Oct-23 22:38 
The issue is with the loop at:
Python
while number > 1 :

    split_result = (number % len(result) -1)
    if split_result >= 0 :
        right = result[split_result + 1:]
        left = result[: split_result]
        result = right + left
    else:
        result = result[: len(result) - 1]

You never decrement the value of number so the loop will continue forever, or until some exception occurs. But it is not clear what the code inside the loop is supposed to do, so that also may need some reworking.

[edit]
Having looked again at this code I am not sure that the while statement above is correct. Try replacing it with if instead, thus:
Python
if number > 1:


[/edit]

modified 8-Oct-23 4:23am.

GeneralRe: FLAMES game in python Pin
ganga devi 20238-Oct-23 9:06
ganga devi 20238-Oct-23 9:06 
QuestionObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard N6-Oct-23 11:43
Richard N6-Oct-23 11:43 
AnswerRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard MacCutchan6-Oct-23 23:29
mveRichard MacCutchan6-Oct-23 23:29 
GeneralRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard N7-Oct-23 1:21
Richard N7-Oct-23 1:21 
GeneralRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard MacCutchan7-Oct-23 1:48
mveRichard MacCutchan7-Oct-23 1:48 
QuestionHOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Member 140680196-Sep-23 10:32
Member 140680196-Sep-23 10:32 
AnswerRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Richard MacCutchan6-Sep-23 22:57
mveRichard MacCutchan6-Sep-23 22:57 
GeneralRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Member 140680197-Sep-23 14:44
Member 140680197-Sep-23 14:44 
GeneralRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Richard MacCutchan8-Sep-23 0:23
mveRichard MacCutchan8-Sep-23 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.