-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help #58
Comments
Hello Aprialmay, First of all, I am nowhere near the exprience of a teacher, but for this one I feel comfortable to provide some knowledge. That being said, it doesn't mean we cannot improve your code. Your code:
The prompts for user input are fine, but it's generally good practice to make them more readable by capitalizing the first letter and maintaining consistent spacing. For example, use "Given name: " instead of "given name:". Incorrect Variable Usage in Print Statements: For example:
This line attempts to concatenate the variable given_name directly with the text "Steve" and the variable family_name directly with "Sanders". This is not how variables and strings should be combined. Hardcoded Values:
# Ask for the user's name and address
# Final output as required
We ask the user for their given name, family name, street address, city, and postal code, and store these inputs in variables:
We correctly use f-strings to include the values of the variables in our output:
We print the name and address in the final required format:
Summary: This approach ensures the program is flexible and correctly displays the user's input. |
I'm am programming beginner
I do not know what is the problem about my programs
https://tmc.mooc.fi/paste/P9pRaa6UaebbGClFGCCWUA
The text was updated successfully, but these errors were encountered: