✅ متغیرها (variables) متغیرها محفظههایی برای ذخیره مقادیر دادهها هستند.
🔴 ایجاد متغیرها پایتون هیچ فرمانی برای اعلان متغیر ندارد. یک متغیر در لحظهای ایجاد میشود که برای اولین بار یک مقدار به آن اختصاص میدهید. ⬅️مثال: x = 5 y = "John"
🟡 متغیرها نیازی به اعلان با نوع خاصی ندارند و حتی بعد از تنظیم میتوانند نوع خود را تغییر دهند. ⬅️ مثال: x = 4 # یک عدد است x x = "Sally" # یک رشته است x حالا print(x)
✅ انتخابکردن (casting) اگر میخواهید نوع داده یک متغیر را مشخص کنید، این کار را می توان با casting انجام داد.
x = str(3) y = int(3) z = float(3)
✅ نوع را دریافت کنید. شما می توانید نوع داده یک متغیر را با تابع type() دریافت کنید.
⬅️ مثال x = 5 y = "John" print(type(x)) print(type(y)) خروجی پایتون: <class 'int'> <class 'str'> 👈 ادامه دارد....
✅ متغیرها (variables) متغیرها محفظههایی برای ذخیره مقادیر دادهها هستند.
🔴 ایجاد متغیرها پایتون هیچ فرمانی برای اعلان متغیر ندارد. یک متغیر در لحظهای ایجاد میشود که برای اولین بار یک مقدار به آن اختصاص میدهید. ⬅️مثال: x = 5 y = "John"
🟡 متغیرها نیازی به اعلان با نوع خاصی ندارند و حتی بعد از تنظیم میتوانند نوع خود را تغییر دهند. ⬅️ مثال: x = 4 # یک عدد است x x = "Sally" # یک رشته است x حالا print(x)
✅ انتخابکردن (casting) اگر میخواهید نوع داده یک متغیر را مشخص کنید، این کار را می توان با casting انجام داد.
x = str(3) y = int(3) z = float(3)
✅ نوع را دریافت کنید. شما می توانید نوع داده یک متغیر را با تابع type() دریافت کنید.
⬅️ مثال x = 5 y = "John" print(type(x)) print(type(y)) خروجی پایتون: <class 'int'> <class 'str'> 👈 ادامه دارد....
Perpetrators of such fraud use various marketing techniques to attract subscribers on their social media channels. Continuing its crackdown against entities allegedly involved in a front-running scam using messaging app Telegram, Sebi on Thursday carried out search and seizure operations at the premises of eight entities in multiple locations across the country. Groups are also not fully encrypted, end-to-end. This includes private groups. Private groups cannot be seen by other Telegram users, but Telegram itself can see the groups and all of the communications that you have in them. All of the same risks and warnings about channels can be applied to groups. I want a secure messaging app, should I use Telegram? In February 2014, the Ukrainian people ousted pro-Russian president Viktor Yanukovych, prompting Russia to invade and annex the Crimean peninsula. By the start of April, Pavel Durov had given his notice, with TechCrunch saying at the time that the CEO had resisted pressure to suppress pages criticizing the Russian government.
from kr