Sitelet https://web.archive.org/web/20260604212928/https://github.com/python/cpython/issues/100362
Skip to content

or and and are reversed #100362

@developerDTH

Description

@developerDTH
en=""
enlist =[]
while (en != "exit" or len(enlist) !=10):
    en = input("Englishword or exit")
    if en !="exit":
        enlist.append(en)     
for i in range(len(enlist)):
    a=""
    for b in range(10):
        a=a+enlist[i]
    print(a)

In this code, the result of using or and the result of using and are reversed. maybe it's a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions