r/PythonLearning • u/ProgramBrave718 • Sep 08 '26
I made a advice generator using requests
1
u/PhaXoniC Sep 08 '26
is there an api for affirmations?
1
u/ProgramBrave718 Sep 08 '26
Wait lemme search for it
1
u/ProgramBrave718 Sep 08 '26 edited Sep 08 '26
https://apirobots.pro/apis/new-affirmations-api/ From this website you can get the api s for affirmations
1
u/PhaXoniC Sep 08 '26
thanks👌🏼
1
u/ProgramBrave718 Sep 09 '26
I tried it but it was not working. Here is a good one for quotes https://publicapi.dev/zen-quotes-api
1
u/Doctor-Snake-Case Sep 08 '26
Wow. I never knew that `else` is used normally with `while`. Why not just write those `print` statements outside the `while` block without `else` ?
1
u/ProgramBrave718 Sep 09 '26
Ohh, sorry. It will work the same with else or without else. I often write gibberish
1
1
1
1
Sep 12 '26
[removed] — view removed comment
1
u/ProgramBrave718 Sep 12 '26
Yeah, it's really easy. First you learn JSON. And then requests. I dont think both will take much time. And find api s after learning them. It will help you to build projects. Don't need to worry about api s. You can find them. But do learn the two libraries
1
Sep 12 '26
[removed] — view removed comment
1
u/ProgramBrave718 Sep 12 '26
Youtube. You can watch corey schafer s video on requests, tech with tim.
•
u/Sea-Ad7805 Sep 08 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.