Click here to Skip to main content
15,889,595 members
Home / Discussions / Python
   

Python

 
QuestionWhat is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
s yu12-Oct-23 6:44
s yu12-Oct-23 6:44 
AnswerRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming12-Oct-23 21:45
mveRichard Deeming12-Oct-23 21:45 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
s yu13-Oct-23 3:17
s yu13-Oct-23 3:17 
AnswerRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Alisha Aalu5-Nov-23 21:49
Alisha Aalu5-Nov-23 21:49 
SuggestionRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming5-Nov-23 22:54
mveRichard Deeming5-Nov-23 22:54 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Alisha Aalu7-Nov-23 21:51
Alisha Aalu7-Nov-23 21:51 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming7-Nov-23 21:56
mveRichard Deeming7-Nov-23 21:56 
QuestionFLAMES game in python Pin
ganga devi 20237-Oct-23 20:20
ganga devi 20237-Oct-23 20:20 
# Gives the name of the game
print ("\t FLAMES")
print ("\n")
# Take input from user
# And Saved them in lowercase
name1 = input("Name of the first person : ").lower()
name2 = input("Name of the second person : ").lower()
print ("\n")
# If there any space in between names
# In this stage removing all the spaces
rename1 = name1.replace(" ", "")
rename2 = name2.replace(" ", "")
# Added those name
name = rename1 + rename2
# In here removing same characters
for x in name:
if name.count(x) != 1:
name = name.replace(x,"")
# Check total number of remaining characters
number = len(name)
# List of FLAMES acronym

result = ["Friends","Love","Affection","Marriage","Enemy","Siblings"]

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]


print("Relationship status :", result[0])

#"split_result = (number % len(result) -1) " SHOWS THAT THERE IS ZERODIVITION ERROR HOW TO CORRECT THAT ?
AnswerRe: FLAMES game in python Pin
Richard MacCutchan7-Oct-23 21:38
mveRichard MacCutchan7-Oct-23 21:38 
GeneralRe: FLAMES game in python Pin
ganga devi 20238-Oct-23 8:06
ganga devi 20238-Oct-23 8:06 
QuestionObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard N6-Oct-23 10:43
Richard N6-Oct-23 10:43 
AnswerRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard MacCutchan6-Oct-23 22:29
mveRichard MacCutchan6-Oct-23 22:29 
GeneralRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard N7-Oct-23 0:21
Richard N7-Oct-23 0:21 
GeneralRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard MacCutchan7-Oct-23 0:48
mveRichard MacCutchan7-Oct-23 0: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 9:32
Member 140680196-Sep-23 9: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 21:57
mveRichard MacCutchan6-Sep-23 21: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 13:44
Member 140680197-Sep-23 13:44 
GeneralRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Richard MacCutchan7-Sep-23 23:23
mveRichard MacCutchan7-Sep-23 23:23 
QuestionPython Project Pin
African Electronic Literature2-Sep-23 21:15
African Electronic Literature2-Sep-23 21:15 
QuestionUpdating a Dictionary in python iteratively Pin
Maverick49426-Aug-23 12:39
Maverick49426-Aug-23 12:39 
AnswerRe: Updating a Dictionary in python iteratively Pin
Richard MacCutchan26-Aug-23 21:11
mveRichard MacCutchan26-Aug-23 21:11 
GeneralRe: Updating a Dictionary in python iteratively Pin
User 1604268027-Aug-23 6:27
User 1604268027-Aug-23 6:27 
GeneralRe: Updating a Dictionary in python iteratively Pin
Richard MacCutchan27-Aug-23 6:30
mveRichard MacCutchan27-Aug-23 6:30 
QuestionWhich technique to apply if function Y changes with values of X variables other than linear regression Pin
Member 106396367-Aug-23 12:42
Member 106396367-Aug-23 12:42 
AnswerRe: Which technique to apply if function Y changes with values of X variables other than linear regression Pin
Dave Kreskowiak7-Aug-23 12:57
mveDave Kreskowiak7-Aug-23 12:57 

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.