Answers for "f string on multipline string"

16

python fstring

#python3.6 is required
age = 12
name = "Simon"
print(f"Hi! My name is {name} and I am {age} years old")
Posted by: Guest on May-31-2020
0

f string on multipline string

return f"""{self.date} - {self.time},
Tags:' {self.tags},
Text: {self.text}"""
Posted by: Guest on January-07-2021
0

f struings pytohn

print(f' words {variable} more words, another variable {goes here}')
Posted by: Guest on September-16-2020

Browse Popular Code Answers by Language