while True : #infinite iteration, A = input ( "Enter A" ), B = input (" Enter B" ), if A == "1" and B=="1" :, print ( " 1" ) # out 1 to the screen, else: # the code underneath is executed when the if condition is false, print ( " 0 " ) # out 0 to the screen, repeat = input ( " repeat? Y/N" ), if repeat == " Y" :, continue # this ensures the algorithm loops back, else : # the code underneath is executed when the if condition is false, break # this statement breaks from the loop

Logic Gate Code....

排行榜

我们目前正在努力改进排行榜功能。请通过提供您的反馈来帮助我们。

提供反馈

视觉风格

选项

我们目前正在改进活动设置。请通过反馈帮助我们。

提供反馈

切换模板

恢复自动保存:?