LEARNPY Telegram 12195
💡ترفند: مقداردهی چندمتغیره با unpacking
🚦سطح: ساده

با نوشتن a, b = b, a می‌تونی مقدار دو متغیر رو بدون متغیر کمکی جا‌به‌جا کنی. سریع، تمیز، پایتونی!
a = 5
b = 10

a,b = b,a

# a = 10
# b = 5


#tips #general

🐍 @LearnPY | لرن پای
🗿106



tgoop.com/learnpy/12195
Create:
Last Update:

💡ترفند: مقداردهی چندمتغیره با unpacking
🚦سطح: ساده

با نوشتن a, b = b, a می‌تونی مقدار دو متغیر رو بدون متغیر کمکی جا‌به‌جا کنی. سریع، تمیز، پایتونی!

a = 5
b = 10

a,b = b,a

# a = 10
# b = 5


#tips #general

🐍 @LearnPY | لرن پای

BY Learn Python


Share with your friend now:
tgoop.com/learnpy/12195

View MORE
Open in Telegram


Telegram News

Date: |

Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. Activate up to 20 bots How to Create a Private or Public Channel on Telegram? Administrators The Standard Channel
from us


Telegram Learn Python
FROM American