🔣مختلط اعداد مختلط با یک "j" به عنوان قسمت موهومی نوشته می شوند: 🟣 مثال x = 3+5j y = 5j z = -5j
print(type(x)) print(type(y)) print(type(z)) خروجی پایتون: <class 'complex'> <class 'complex'> <class 'complex'> 🔣 تبدیل نوع می توانید با متدهای ()int()، float و ()complex یک نوع را به نوع دیگر تبدیل کنید: 🟣 مثال x = 1 # int y = 2.8 # float z = 1j # complex
❗️توجه: نمی توانید اعداد مختلط را به نوع اعداد دیگری تبدیل کنید.
🔣عدد تصادفی پایتون یک تابع تصادفی () برای ساخت یک عدد تصادفی ندارد، اما پایتون یک ماژول داخلی به نام random دارد که میتوان از آن برای ساخت اعداد استفاده کرد:
🟣 مثال ماژول تصادفی را وارد کنید و یک عدد تصادفی بین 1 و 9 نمایش دهید: import random
🔣مختلط اعداد مختلط با یک "j" به عنوان قسمت موهومی نوشته می شوند: 🟣 مثال x = 3+5j y = 5j z = -5j
print(type(x)) print(type(y)) print(type(z)) خروجی پایتون: <class 'complex'> <class 'complex'> <class 'complex'> 🔣 تبدیل نوع می توانید با متدهای ()int()، float و ()complex یک نوع را به نوع دیگر تبدیل کنید: 🟣 مثال x = 1 # int y = 2.8 # float z = 1j # complex
❗️توجه: نمی توانید اعداد مختلط را به نوع اعداد دیگری تبدیل کنید.
🔣عدد تصادفی پایتون یک تابع تصادفی () برای ساخت یک عدد تصادفی ندارد، اما پایتون یک ماژول داخلی به نام random دارد که میتوان از آن برای ساخت اعداد استفاده کرد:
🟣 مثال ماژول تصادفی را وارد کنید و یک عدد تصادفی بین 1 و 9 نمایش دهید: import random
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.” But because group chats and the channel features are not end-to-end encrypted, Galperin said user privacy is potentially under threat. READ MORE In the past, it was noticed that through bulk SMSes, investors were induced to invest in or purchase the stocks of certain listed companies. The SC urges the public to refer to the SC’s I nvestor Alert List before investing. The list contains details of unauthorised websites, investment products, companies and individuals. Members of the public who suspect that they have been approached by unauthorised firms or individuals offering schemes that promise unrealistic returns
from hk