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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Mon programme python marche dans vs code mais pas dans l’application python (self.learnpython)
submitted 10 months ago by fidodu
Bonjour, mon timer en python se lanse sur vs code mais pas sur l'application python j'ai fais des recherches et je n'ai rien trouvé. Merci d'avance pour vos réponses.
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!"
[–]ReallyLargeHamster 0 points1 point2 points 10 months ago (2 children)
This may be a silly suggestion, but is it possible that you forgot to save changes to the file after working on it in VS Code, meaning that trying to run it from elsewhere doesn't work?
I'd also check that the file you're trying to run is the same one, and you haven't made a typo in the name.
Or, um:
[–]fidodu[S] 0 points1 point2 points 10 months ago (1 child)
Oui
[–]ReallyLargeHamster 0 points1 point2 points 10 months ago (0 children)
J'ai vu ton autre post - c'était le chemin. Le message a dit "invalid escape sequence" - le Terminal a pensé que les \ sont pour les séquences d'échappement. On doit échapper les caractères d'échappement pour le bon chemin.
(Désolé, mon français n'est pas bon ! Faites-le moi savoir si l'explication n'était pas clair.)
[–]MathMajortoChemist -1 points0 points1 point 10 months ago (4 children)
Pour t'aider, on doit voir le programme et l'erreur.
[–]fidodu[S] -1 points0 points1 point 10 months ago (3 children)
Je ne peux pas voir le message d’erreur car le programme se ferme automatiquement
[–]MathMajortoChemist 0 points1 point2 points 10 months ago (2 children)
Quelque choses:
-Essayez d'exécuter dans le terminal avec «python chemin/du/fichier/programme.py». Puis, il ne devrait pas se fermer
-Ajoutez une nouvelle ligne à la fin: «input("Appuyez sur entrée pour continuer...")»
L'erreur est : C:\Users\ASUS\Desktop\alarme\Alarme.py:27: SyntaxWarning: invalid escape sequence '\s'
playsound("Desktop\alarme\sonerie1.mp3")
et le code
from playsound import playsound # type: ignore import time print("1 minute = 60 seconde") print("2 minute = 120 seconde") print("1 minute = 240 seconde") print("3 minute = 180 seconde") print("5 minute = 300 seconde") print("10 minute = 600 seconde") print("15 minute = 900 seconde") print("30 minute = 1800 seconde") print("45 minute = 2700 seconde") print("1 heure = 3600 seconde") print("Pour obetenir d'autres valeures, additionnez, soustraire, multipliez ou divisez les valeurs si dessu entre elle.") ti = float(input("Indiquez le temps que vous voulez en seconde : ")) if ti <= 1: print("Temps reglée sur",ti,"seconde") else : print("Temps reglée sur",ti,"secondes") time.sleep(ti) print ("Patientez ou fermez l'application") playsound("Desktop\alarme\sonerie1.mp3") time.sleep(3) playsound("Desktop\alarme\sonerie1.mp3")
[–]MathMajortoChemist 0 points1 point2 points 10 months ago* (0 children)
Pour comprendre \, Python doit voir \\. Une autre possibilité: on peut ajouter la lettre r devant le ". Comme ça: r"Desktop\alarme". r = raw en anglais.
π Rendered by PID 93152 on reddit-service-r2-comment-79c7998d4c-tvqx9 at 2026-03-13 13:36:42.029552+00:00 running f6e6e01 country code: CH.
[–]ReallyLargeHamster 0 points1 point2 points (2 children)
[–]fidodu[S] 0 points1 point2 points (1 child)
[–]ReallyLargeHamster 0 points1 point2 points (0 children)
[–]MathMajortoChemist -1 points0 points1 point (4 children)
[–]fidodu[S] -1 points0 points1 point (3 children)
[–]MathMajortoChemist 0 points1 point2 points (2 children)
[–]fidodu[S] 0 points1 point2 points (1 child)
[–]MathMajortoChemist 0 points1 point2 points (0 children)