Compare the Two Programs Below
full_name = input(“Enter Name:”)
print(full_name)
full_name = input(“Please what is your first
name and surname?”
print(full_name)
If you observe clearly, the first program on the left hand requires a name but doesn’t explain what
type of name. it could be the full name of a street, football team, business, or drink. The instruction
isn’t concise. However, the code on the right hand clearly states what is required from the user. This
makes it easy for the user to input the information required from him or her.
Do'stlaringiz bilan baham: