Skip to content

Commit 9708626

Browse files
committed
Using newly learned formatted string in example
1 parent 55b40d0 commit 9708626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week2/5_String_Methods.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
"# נסו להכניס הרבה רווחים אחרי או לפני שם המשתמש\n",
432432
"username = input(\"Please enter your user: \")\n",
433433
"username = username.strip()\n",
434-
"print(\"This string is: \" + username + \".\")"
434+
"print(f\"This string is: {username}.\")"
435435
]
436436
},
437437
{

0 commit comments

Comments
 (0)