ChatCrawlerпоиск по публичному Telegram Открыть приложение
3

30 Days Of Python

5 июня 2024
2024-06-05×
5 июня 2024
I
Pls when do you use a " for loop " and "while loop" What is the difference between print statement and return statement
You use for loop, when you know how many iterations you are going to do, for example you want to loop a list that contains numbers: [1, 2, 3, 4, 5]. This case you know how many times you are going to loop (5) times. And then it will exist the loop and continues execution You use while loop when you don't know how many times you'll execute the code, for example let's say you want to ask the user for an input number and then you print('The number you typed is', number). But if the user enter "x", you should exist loop: while True: number = int(input('Enter number')) If number == 0: break Print('Number is ', number)
I
The difference between the return and print, first I have to say that return it will make more sense when get into function, but for now think of return like break, if it's return a value but just think of it like a break The print is actually just a function receive anything and print it out
I
🌟 Exciting News! 🌟 I’m happy to announce that one of my side projects has officially made it to production! 🎉 Introducing RevampedCV(revampedcv.com) – an AI-optimized resume builder designed to help you create standout resumes effortlessly. Our tool is simple, user-friendly, and effective. Check it out at revampedcv.com and let me know what you think! Your feedback is highly appreciated. 🙌
Календарь: июнь 2024
ПнВтСрЧтПтСбВс1232415467891011121132141151611718192021222372432542622728295302
Архив по месяцам
Открыть в Telegram Каталог площадок Искать в ChatCrawler

Слепок открытой публичной ленты из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Чего мы не делаем · Убрать страницу из выдачи · Каталог