code_practice

Hackerrank 30 Days of Code 16 [Exceptions - String to Integer]

  • By Khel Kim, 김현호
  • 17 Feb 2019
  • Tags : coding_practice

기초를 갈고 닦기 위한 스탭!
Hackerrank 30 Days of Code
문제
Exceptions - String to Integer

S = input().strip()

try:
    print(int(S))
except ValueError:
    print('Bad String')

궁금하신게 있다면 메일 주세요.
k2h7913@daum.net
cafehero123@gmail.com