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

The War on Fakes channel has repeatedly attempted to push conspiracies that footage from Ukraine is somehow being falsified. One post on the channel from February 24 claimed without evidence that a widely viewed photo of a Ukrainian woman injured in an airstrike in the city of Chuhuiv was doctored and that the woman was seen in a different photo days later without injuries. The post, which has over 600,000 views, also baselessly claimed that the woman's blood was actually makeup or grape juice. Investors took profits on Friday while they could ahead of the weekend, explained Tom Essaye, founder of Sevens Report Research. Saturday and Sunday could easily bring unfortunate news on the war front—and traders would rather be able to sell any recent winnings at Friday’s earlier prices than wait for a potentially lower price at Monday’s open. Telegram has become more interventionist over time, and has steadily increased its efforts to shut down these accounts. But this has also meant that the company has also engaged with lawmakers more generally, although it maintains that it doesn’t do so willingly. For instance, in September 2021, Telegram reportedly blocked a chat bot in support of (Putin critic) Alexei Navalny during Russia’s most recent parliamentary elections. Pavel Durov was quoted at the time saying that the company was obliged to follow a “legitimate” law of the land. He added that as Apple and Google both follow the law, to violate it would give both platforms a reason to boot the messenger from its stores. On Telegram’s website, it says that Pavel Durov “supports Telegram financially and ideologically while Nikolai (Duvov)’s input is technological.” Currently, the Telegram team is based in Dubai, having moved around from Berlin, London and Singapore after departing Russia. Meanwhile, the company which owns Telegram is registered in the British Virgin Islands. On February 27th, Durov posted that Channels were becoming a source of unverified information and that the company lacks the ability to check on their veracity. He urged users to be mistrustful of the things shared on Channels, and initially threatened to block the feature in the countries involved for the length of the war, saying that he didn’t want Telegram to be used to aggravate conflict or incite ethnic hatred. He did, however, walk back this plan when it became clear that they had also become a vital communications tool for Ukrainian officials and citizens to help coordinate their resistance and evacuations.
from tw


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