HackerRank【30 Days of Code——day01】

Day 1: Data Types

i = 4
d = 4.0
s = 'HackerRank '
# Declare second integer, double, and String variables.
inputInt = int(input())
inputDouble = float(input())
inputString = input()
# Read and save an integer, double, and String to your variables.

# Print the sum of both integer variables on a new line.
print(i+inputInt)
# Print the sum of the double variables on a new line.
print(d+inputDouble)
# Concatenate and print the String variables on a new line
# The 's' variable above should be printed first.
print(s+inputString)

 

posted @ 2019-07-21 19:31  乱世有歌舞  阅读(165)  评论(0编辑  收藏  举报