Title: lesson 13 f - strings · Issue #3 · gitdagray/python-course · GitHub
Open Graph Title: lesson 13 f - strings · Issue #3 · gitdagray/python-course
X Title: lesson 13 f - strings · Issue #3 · gitdagray/python-course
Description: Really enjoying your course. So much packed into every lesson, really well done! Just wanted to comment that when you change the concatenated strings in rps5.py to f-strings I think it should be noted that you can further simplify: f str...
Open Graph Description: Really enjoying your course. So much packed into every lesson, really well done! Just wanted to comment that when you change the concatenated strings in rps5.py to f-strings I think it should be no...
X Description: Really enjoying your course. So much packed into every lesson, really well done! Just wanted to comment that when you change the concatenated strings in rps5.py to f-strings I think it should be no...
Opengraph URL: https://github.com/gitdagray/python-course/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lesson 13 f - strings","articleBody":"Really enjoying your course. So much packed into every lesson, really well done!\r\n\r\nJust wanted to comment that when you change the concatenated strings in rps5.py to f-strings I think it should be noted that you can further simplify:\r\nf string allows multiple datatypes so several castings to different variable types can be omitted:\r\n\r\nln 26 player = int(playerchoice)\r\nand computer = int(computerchoice)\r\n\r\nthe print statements on ln 33, 34 can be shortened:\r\n\r\nfrom: print(\"\\nYou chose {str(RPS(player)).replace('RPS.', '').title()}\")\r\nto: print(f\"\\nYou chose {playerchoice.replace('RPS.', '').title()}\")\r\n\r\nalso print statements ln 62, 63 \u0026 64 do not need the str constructor: \r\nprint(\"\\nGame count: {str(game_count)) \u003e\u003e print(f\"\\nGame count: {game_count}\")","author":{"url":"https://github.com/langerking","@type":"Person","name":"langerking"},"datePublished":"2023-09-26T19:41:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3/python-course/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2a0384f2-764c-90e0-5387-3ff2530e0ddf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6B8:1EC7E4:1C1A928:24366B7:697E1F42 |
| html-safe-nonce | 0c0bfd7bdf1eb01ccd2f2cea40a4253d6d7b1f817f8c8cbbc6d0a47497aad479 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkI4OjFFQzdFNDoxQzFBOTI4OjI0MzY2Qjc6Njk3RTFGNDIiLCJ2aXNpdG9yX2lkIjoiNjQ5MzM3NTkwOTE0MjA3NzI1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0291276af811b256e31238008440907e3dd0a419cce157e278c840df63b2d1bd |
| hovercard-subject-tag | issue:1914184248 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitdagray/python-course/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/158724f0019cef1bc89120eabc842ff950b2bcc6550b348f86a4b68ce4338112/gitdagray/python-course/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/158724f0019cef1bc89120eabc842ff950b2bcc6550b348f86a4b68ce4338112/gitdagray/python-course/issues/3 |
| og:image:alt | Really enjoying your course. So much packed into every lesson, really well done! Just wanted to comment that when you change the concatenated strings in rps5.py to f-strings I think it should be no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | langerking |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitdagray/python-course git https://github.com/gitdagray/python-course.git |
| octolytics-dimension-user_id | 31679671 |
| octolytics-dimension-user_login | gitdagray |
| octolytics-dimension-repository_id | 601359963 |
| octolytics-dimension-repository_nwo | gitdagray/python-course |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 601359963 |
| octolytics-dimension-repository_network_root_nwo | gitdagray/python-course |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width