IDS_MATH Telegram 148
🎲#گام_به_گام

💻 کدنویسی

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



tgoop.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 ریاضی، آمار و علوم کامپیوتر - مدارس میان‌رشته‌ای


Share with your friend now:
tgoop.com/IDS_Math/148

View MORE
Open in Telegram


Telegram News

Date: |

Each account can create up to 10 public channels Deputy District Judge Peter Hui sentenced computer technician Ng Man-ho on Thursday, a month after the 27-year-old, who ran a Telegram group called SUCK Channel, was found guilty of seven charges of conspiring to incite others to commit illegal acts during the 2019 extradition bill protests and subsequent months. Today, we will address Telegram channels and how to use them for maximum benefit. A few years ago, you had to use a special bot to run a poll on Telegram. Now you can easily do that yourself in two clicks. Hit the Menu icon and select “Create Poll.” Write your question and add up to 10 options. Running polls is a powerful strategy for getting feedback from your audience. If you’re considering the possibility of modifying your channel in any way, be sure to ask your subscribers’ opinions first. Administrators
from us


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