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

Commit01c0a12

Browse files
committed
Better naming in solution
1 parent65e041b commit01c0a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎ch08-conditional-logic/5-break-out-of-the-pattern.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# Exercise 1
66
# Run in an infinite loop until the user types "q" or "Q"
77
whileTrue:
8-
my_input=input('Type "q" or "Q" to quit: ')
9-
ifmy_input.upper()=="Q":
8+
user_input=input('Type "q" or "Q" to quit: ')
9+
ifuser_input.upper()=="Q":
1010
break
1111

1212

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp