✅ متغیرها (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'> 👈 ادامه دارد....
Overall, extreme levels of fear in the market seems to have morphed into something more resembling concern. For example, the Cboe Volatility Index fell from its 2022 peak of 36, which it hit Monday, to around 30 on Friday, a sign of easing tensions. Meanwhile, while the price of WTI crude oil slipped from Sunday’s multiyear high $130 of barrel to $109 a pop. Markets have been expecting heavy restrictions on Russian oil, some of which the U.S. has already imposed, and that would reduce the global supply and bring about even more burdensome inflation. In the past, it was noticed that through bulk SMSes, investors were induced to invest in or purchase the stocks of certain listed companies. In a statement, the regulator said the search and seizure operation was carried out against seven individuals and one corporate entity at multiple locations in Ahmedabad and Bhavnagar in Gujarat, Neemuch in Madhya Pradesh, Delhi, and Mumbai. The Securities and Exchange Board of India (Sebi) had carried out a similar exercise in 2017 in a matter related to circulation of messages through WhatsApp. Telegram was co-founded by Pavel and Nikolai Durov, the brothers who had previously created VKontakte. VK is Russia’s equivalent of Facebook, a social network used for public and private messaging, audio and video sharing as well as online gaming. In January, SimpleWeb reported that VK was Russia’s fourth most-visited website, after Yandex, YouTube and Google’s Russian-language homepage. In 2016, Forbes’ Michael Solomon described Pavel Durov (pictured, below) as the “Mark Zuckerberg of Russia.”
from us