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: |

On December 23rd, 2020, Pavel Durov posted to his channel that the company would need to start generating revenue. In early 2021, he added that any advertising on the platform would not use user data for targeting, and that it would be focused on “large one-to-many channels.” He pledged that ads would be “non-intrusive” and that most users would simply not notice any change. He adds: "Telegram has become my primary news source." In 2018, Russia banned Telegram although it reversed the prohibition two years later. One thing that Telegram now offers to all users is the ability to “disappear” messages or set remote deletion deadlines. That enables users to have much more control over how long people can access what you’re sending them. Given that Russian law enforcement officials are reportedly (via Insider) stopping people in the street and demanding to read their text messages, this could be vital to protect individuals from reprisals. What distinguishes the app from competitors is its use of what's known as channels: Public or private feeds of photos and videos that can be set up by one person or an organization. The channels have become popular with on-the-ground journalists, aid workers and Ukrainian President Volodymyr Zelenskyy, who broadcasts on a Telegram channel. The channels can be followed by an unlimited number of people. Unlike Facebook, Twitter and other popular social networks, there is no advertising on Telegram and the flow of information is not driven by an algorithm.
from us


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