tgoop.com/AIArchitecturee/1745
Create:
Last Update:
Last Update:
y = True
z = False
print(not x and (y or z and not y))
- عملگر not مقدار رو معکوس میکنه:
not x → not False → True
- ترتیب تقدم عملگرها در پایتون: not بیشترین اولویت رو داره، and بعد از اون اجرا میشه و or آخرین عملگریه که اجرا میشه.
y or (z and (not y))
مقدارگذاری:
- y = True
- z = False
- not y = not True = False
- z and not y → False and False → False
- y or False → True or False → True
ترکیب نهایی عبارت اصلی:
not x and (y or z and not y)
مقدارگذاری:
- not x → True
- (y or z and not y) → True
- True and True → True
BY AIA
Share with your friend now:
tgoop.com/AIArchitecturee/1745