Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exchange raw_input with input() or eval(input()).
- Loading branch information
Joseph Pan
committed
Jan 9, 2014
1 parent
9e2c1c6
commit 0acfdd8
Showing
2 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/python3 | ||
|
||
# ex12: Prompting People | ||
# exchange raw_input with input() or eval(input()) | ||
age = raw_input("How old are you?") | ||
height = raw_input("How tall are you? ") | ||
weight = raw_input("How much do you weigh? ") | ||
|
||
age = input("How old are you?") | ||
height = input("How tall are you? ") | ||
weight = input("How much do you weigh? ") | ||
|
||
print("So, you're %r old, %r tall and %r heavy." % (age, height, weight)) |