Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- width = input()
- height = input()
- def rectanglePerimeter(width, height):
- return ((width + height)*2)
- print(rectanglePerimeter(width, height))
- width, height = map(int, input().split())
- def rectanglePerimeter(width, height):
- return ((width + height)*2)
- print(rectanglePerimeter(width, height))
- % echo "1 2" | test.py
- 6
- width = input()
- print(width)
- height = input()
- print(height)
- 1 2
- Traceback (most recent call last):
- File "/home/unutbu/pybin/test.py", line 5, in <module>
- height = input()
- EOFError: EOF when reading a line
- width, height = map(int, input().split())
- test.py 1 2
- width = int(input())
- height = int(input())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement