f-string ftw #47
Fred
commented 2021-08-26 13:41:09 +02:00
Owner
```python
return "%s, %s" % (self.lastname, self.firstname)
return "{}, {}".format(self.lastname, self.firstname)
return f"{self.lastname}, {self.firstname}"
```
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Fred/gwift-book#47
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?