🔣مختلط اعداد مختلط با یک "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
Markets continued to grapple with the economic and corporate earnings implications relating to the Russia-Ukraine conflict. “We have a ton of uncertainty right now,” said Stephanie Link, chief investment strategist and portfolio manager at Hightower Advisors. “We’re dealing with a war, we’re dealing with inflation. We don’t know what it means to earnings.” "We as Ukrainians believe that the truth is on our side, whether it's truth that you're proclaiming about the war and everything else, why would you want to hide it?," he said. Despite Telegram's origins, its approach to users' security has privacy advocates worried. 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. "The argument from Telegram is, 'You should trust us because we tell you that we're trustworthy,'" Maréchal said. "It's really in the eye of the beholder whether that's something you want to buy into."
from br