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

💻 کدنویسی

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

😄 متغیرهای پایتون - چندین مقدار اختصاص دهید.

⬅️ مقادیر زیادی برای متغیرهای چندگانه
پایتون به شما این امکان را می دهد که در یک خط به چندین متغیر مقادیر اختصاص دهید:

🟡 مثال:
x, y, z = "Orange", "Banana", "Cherry"

print(x)
print(y)
print(z)
خروجی پایتون
Orange
Banana
Cherry

‼️توجه: مطمئن شوید که تعداد متغیرها با تعداد مقادیر مطابقت داشته باشد، در غیر این صورت با خطا مواجه خواهید شد.

یک مقدار به چندین متغیر
و می توانید یک مقدار را به چندین متغیر در یک خط اختصاص دهید:

🟡 مثال:
x = y = z = "Orange"
print(x)
print(y)
print(z)
خروجی پایتون:
Orange
Orange
Orange
👈 ادامه دارد....

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

✉️@IDSchools
✉️@IDS_Math
Please open Telegram to view this post
VIEW IN TELEGRAM



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

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

💻 کدنویسی

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

😄 متغیرهای پایتون - چندین مقدار اختصاص دهید.

⬅️ مقادیر زیادی برای متغیرهای چندگانه
پایتون به شما این امکان را می دهد که در یک خط به چندین متغیر مقادیر اختصاص دهید:

🟡 مثال:
x, y, z = "Orange", "Banana", "Cherry"

print(x)
print(y)
print(z)
خروجی پایتون
Orange
Banana
Cherry

‼️توجه: مطمئن شوید که تعداد متغیرها با تعداد مقادیر مطابقت داشته باشد، در غیر این صورت با خطا مواجه خواهید شد.

یک مقدار به چندین متغیر
و می توانید یک مقدار را به چندین متغیر در یک خط اختصاص دهید:

🟡 مثال:
x = y = z = "Orange"
print(x)
print(y)
print(z)
خروجی پایتون:
Orange
Orange
Orange
👈 ادامه دارد....

#️⃣#کدنویسی
#️⃣#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/110

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

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. In the past, it was noticed that through bulk SMSes, investors were induced to invest in or purchase the stocks of certain listed companies. But because group chats and the channel features are not end-to-end encrypted, Galperin said user privacy is potentially under threat. "And that set off kind of a battle royale for control of the platform that Durov eventually lost," said Nathalie Maréchal of the Washington advocacy group Ranking Digital Rights. The Dow Jones Industrial Average fell 230 points, or 0.7%. Meanwhile, the S&P 500 and the Nasdaq Composite dropped 1.3% and 2.2%, respectively. All three indexes began the day with gains before selling off.
from ua


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