编写一个函数,要求用户输入他们的姓名、年龄和身高(以米为单位),然后使用单个打印语句显示自定义消息

Write a function that asks the user to enter their name, age and height in meters and then display a customised message using a single print statement

name = requestString("Enter your name:")

age = requestNumber("Enter your age:")

height = requestNumber("Enter your height:")

print "Hello", name, "!", "i see that you are", num, "years old", "&", height, "tall"

它没有按照我想要的方式打印。

没有声明 num vaiable。

中使用年龄而不是数字

print "Hello", name, "!", "i see that you are", num, "years old", "&", height, "tall"

使用

print "Hello", name, "!", "i see that you are", age, "years old", "&", height, "tall"