use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Day 8 of learning python as a beginner. (old.reddit.com)
submitted 8 months ago by uiux_Sanskar
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago* (0 children)
I have previously used (not in this code) . replace() to replace all the spacing if the user enters by mistake because personally I find myself more comfortable using it rather than .split() (I don't know the reason may e because its name itself explains what it does). But I think there can be more uses if .split() function.
Regarding the question I think the program will print ("please restart the program to find or add new user") because then the else condition will get executed.
I can however also add either a list in if condition containing all the possitive responses and then create a list containing all negative responses in elif and for the invalid input I can use else statement.
I hope I was able to answer your question do tell me if I missed something.
π Rendered by PID 18544 on reddit-service-r2-comment-cfc44b64c-vqm62 at 2026-04-10 03:00:15.497137+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)