RAPEXA Telegram 1316
در زبان برنامه‌نویسی پایتون، Bloolean یک نوع داده‌ی منطقی (Boolean) است که مقدار آن تنها می‌تواند True یا False باشد. این داده‌ی منطقی برای بررسی شرایط در برنامه‌های پایتون استفاده می‌شود.

تعریف یک Bloolean بسیار ساده است. می‌توانید به این صورت آن را تعریف کنید:

a = True
b = False


در این مثال، متغیر a یک Bloolean با مقدار True و متغیر b یک Bloolean با مقدار False تعریف شده‌اند.

شرط‌ها با استفاده از داده‌های منطقی بررسی می‌شوند. مثلا، اگر بخواهید بررسی کنید که عددی برابر با ۵ است یا نه، می‌توانید این کار را به این صورت انجام دهید:

number = 5
is_equal_to_five = number == 5
print(is_equal_to_five)

این کد، متغیر is_equal_to_five را به True تنظیم می‌کند اگر مقدار number برابر با ۵ باشد و در غیر این صورت به False.

مشاهده ویدیو :

دوره پایتون | قسمت ششم | مقدمه ای بر متغییر ها | بخش چهارم | bloolean ها

https://youtu.be/GwD6fABwtqU



tgoop.com/rapexa/1316
Create:
Last Update:

در زبان برنامه‌نویسی پایتون، Bloolean یک نوع داده‌ی منطقی (Boolean) است که مقدار آن تنها می‌تواند True یا False باشد. این داده‌ی منطقی برای بررسی شرایط در برنامه‌های پایتون استفاده می‌شود.

تعریف یک Bloolean بسیار ساده است. می‌توانید به این صورت آن را تعریف کنید:

a = True
b = False


در این مثال، متغیر a یک Bloolean با مقدار True و متغیر b یک Bloolean با مقدار False تعریف شده‌اند.

شرط‌ها با استفاده از داده‌های منطقی بررسی می‌شوند. مثلا، اگر بخواهید بررسی کنید که عددی برابر با ۵ است یا نه، می‌توانید این کار را به این صورت انجام دهید:

number = 5
is_equal_to_five = number == 5
print(is_equal_to_five)

این کد، متغیر is_equal_to_five را به True تنظیم می‌کند اگر مقدار number برابر با ۵ باشد و در غیر این صورت به False.

مشاهده ویدیو :

دوره پایتون | قسمت ششم | مقدمه ای بر متغییر ها | بخش چهارم | bloolean ها

https://youtu.be/GwD6fABwtqU

BY RAPEXA


Share with your friend now:
tgoop.com/rapexa/1316

View MORE
Open in Telegram


Telegram News

Date: |

With the “Bear Market Screaming Therapy Group,” we’ve now transcended language. 3How to create a Telegram channel? Although some crypto traders have moved toward screaming as a coping mechanism, several mental health experts call this therapy a pseudoscience. The crypto community finds its way to engage in one or the other way and share its feelings with other fellow members. Joined by Telegram's representative in Brazil, Alan Campos, Perekopsky noted the platform was unable to cater to some of the TSE requests due to the company's operational setup. But Perekopsky added that these requests could be studied for future implementation. As the broader market downturn continues, yelling online has become the crypto trader’s latest coping mechanism after the rise of Goblintown Ethereum NFTs at the end of May and beginning of June, where holders made incoherent groaning sounds and role-played as urine-loving goblin creatures in late-night Twitter Spaces.
from us


Telegram RAPEXA
FROM American