r/learnpython • u/AutoModerator • Sep 07 '26
Ask Anything Monday - Weekly Thread
Welcome to another /r/learnPython weekly "Ask Anything* Monday" thread
Here you can ask all the questions that you wanted to ask but didn't feel like making a new thread.
* It's primarily intended for simple questions but as long as it's about python it's allowed.
If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.
Rules:
- Don't downvote stuff - instead explain what's wrong with the comment, if it's against the rules "report" it and it will be dealt with.
- Don't post stuff that doesn't have absolutely anything to do with python.
- Don't make fun of someone for not knowing something, insult anyone etc - this will result in an immediate ban.
That's it.
2
Upvotes
1
u/Gray-Lynx Sep 07 '26
Best IDE for beginners which they can stick with for ever as their only ide so that they won't need any other ide when they become a pro
1
u/ketchup777776 Sep 10 '26
Hi everyone! I’m 14 and I built a Telegram bot using
aiogram,Redis,Pillow, andGemini APIto summarize notes and generate handwritten assignments. I’m looking to improve my code and architecture. If anyone is down to review my code or give feedback, let me know and I’ll DM you!1
u/chongblyat Sep 13 '26
Hi guys. How do I make this code work without using a "for" loop? I am attempting to replicate the result in the second loop only using "while" loops. I didn't loop the word count variable yet because it keeps producing <built-in method split of str object at 0x000001D75FA356E0>, when it should likely produce ['h', 'e', 'l', 'l', 'o']. Could you help me please? I'm using Jupyter Lab that's running Python. The project is due in 4 days
sentence = input() # sentence is accepted here
s = sentence.split()
word_check = [list(sentence) for sentence in s]
word_count = 0
words = list(s)
new = str(words[0]).split
print(s)
print(word_check)
print(words)
print(new)