✅ متغیرها (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'> 👈 ادامه دارد....
Messages are not fully encrypted by default. That means the company could, in theory, access the content of the messages, or be forced to hand over the data at the request of a government. The regulator said it had received information that messages containing stock tips and other investment advice with respect to selected listed companies are being widely circulated through websites and social media platforms such as Telegram, Facebook, WhatsApp and Instagram. During the operations, Sebi officials seized various records and documents, including 34 mobile phones, six laptops, four desktops, four tablets, two hard drive disks and one pen drive from the custody of these persons. However, the perpetrators of such frauds are now adopting new methods and technologies to defraud the investors. In the past, it was noticed that through bulk SMSes, investors were induced to invest in or purchase the stocks of certain listed companies.
from tw