Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83667e5

Browse files
committed
Rerunning (interrupting) first_input step should not pass
1 parent9601a32 commit83667e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎core/chapters/c11_tic_tac_toe_project.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,11 @@ def program(self):
12281228
name=input()
12291229
print(f'Hello{name}!')
12301230

1231+
defcheck(self):
1232+
ifKeyboardInterrupt.__name__inself.result:
1233+
returnFalse
1234+
returnsuper().check()
1235+
12311236
classconvert_input_to_int(ExerciseStep):
12321237
"""
12331238
Whatever you typed in (not including pressing Enter at the end) is returned from the `input()` function as a string.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp