Telegram Group & Telegram Channel
🎲#گام_به_گام

💻 کدنویسی

9️⃣ دستورات پایه در پایتون: قسمت نهم

⚡️اعداد پایتون
سه نوع عدد در پایتون وجود دارد:
int
float
complex

متغیرهای عددی زمانی ایجاد می شوند که یک مقدار به آنها اختصاص دهید:
مثال
x = 1 # int
y = 2.8 # float
z = 1j # complex
برای تایید نوع هر شی در پایتون، از تابع() type استفاده کنید:
مثال
print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'int'>
<class 'float'>
<class 'complex'>

اینت (Int) یا عدد صحیح، یک عدد صحیح، مثبت یا منفی، بدون اعشار، با طول نامحدود است.

مثال
x = 1
y = 35656222554887711
z = -3255522

print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'int'>
<class 'int'>
<class 'int'>

فلوت (float) یا «عدد ممیز شناور» یک عدد مثبت یا منفی است که شامل یک یا چند اعشار است.
مثال
x = 1.10
y = 1.0
z = -35.59

print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'float'>
<class 'float'>
<class 'float'>

.فلوت Float همچنین می تواند اعداد علمی با "e" برای نشان دادن توان 10 باشد.

مثال
x = 35e3
y = 12E4
z = -87.7e100

print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'float'>
<class 'float'>
<class 'float'>
⬅️ ادامه دارد....

#️⃣#کدنویسی
#️⃣#IDSchools
#️⃣#IDS
#️⃣#IDS_Math

🆔@IDSchools
🆔@IDS_Math



group-telegram.com/IDS_Math/148
Create:
Last Update:

🎲#گام_به_گام

💻 کدنویسی

9️⃣ دستورات پایه در پایتون: قسمت نهم

⚡️اعداد پایتون
سه نوع عدد در پایتون وجود دارد:
int
float
complex

متغیرهای عددی زمانی ایجاد می شوند که یک مقدار به آنها اختصاص دهید:
مثال
x = 1 # int
y = 2.8 # float
z = 1j # complex
برای تایید نوع هر شی در پایتون، از تابع() type استفاده کنید:
مثال
print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'int'>
<class 'float'>
<class 'complex'>

اینت (Int) یا عدد صحیح، یک عدد صحیح، مثبت یا منفی، بدون اعشار، با طول نامحدود است.

مثال
x = 1
y = 35656222554887711
z = -3255522

print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'int'>
<class 'int'>
<class 'int'>

فلوت (float) یا «عدد ممیز شناور» یک عدد مثبت یا منفی است که شامل یک یا چند اعشار است.
مثال
x = 1.10
y = 1.0
z = -35.59

print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'float'>
<class 'float'>
<class 'float'>

.فلوت Float همچنین می تواند اعداد علمی با "e" برای نشان دادن توان 10 باشد.

مثال
x = 35e3
y = 12E4
z = -87.7e100

print(type(x))
print(type(y))
print(type(z))
خروجی پایتون
<class 'float'>
<class 'float'>
<class 'float'>
⬅️ ادامه دارد....

#️⃣#کدنویسی
#️⃣#IDSchools
#️⃣#IDS
#️⃣#IDS_Math

🆔@IDSchools
🆔@IDS_Math

BY ریاضی، آمار و علوم کامپیوتر - مدارس میان‌رشته‌ای


Warning: Undefined variable $i in /var/www/group-telegram/post.php on line 260

Share with your friend now:
group-telegram.com/IDS_Math/148

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

Oh no. There’s a certain degree of myth-making around what exactly went on, so take everything that follows lightly. Telegram was originally launched as a side project by the Durov brothers, with Nikolai handling the coding and Pavel as CEO, while both were at VK. "There are several million Russians who can lift their head up from propaganda and try to look for other sources, and I'd say that most look for it on Telegram," he said. Right now the digital security needs of Russians and Ukrainians are very different, and they lead to very different caveats about how to mitigate the risks associated with using Telegram. For Ukrainians in Ukraine, whose physical safety is at risk because they are in a war zone, digital security is probably not their highest priority. They may value access to news and communication with their loved ones over making sure that all of their communications are encrypted in such a manner that they are indecipherable to Telegram, its employees, or governments with court orders. "There are a lot of things that Telegram could have been doing this whole time. And they know exactly what they are and they've chosen not to do them. That's why I don't trust them," she said. Artem Kliuchnikov and his family fled Ukraine just days before the Russian invasion.
from jp


Telegram ریاضی، آمار و علوم کامپیوتر - مدارس میان‌رشته‌ای
FROM American