+ 1

why this code giving "f-string: mismatched '(', '{', or '[' " error ???

i make use of string formating in my this code and see an new error that i am not seen before i check my code many times but can not figure out what is wrong in the code https://code.sololearn.com/cmAIkIL612r8/?ref=app

27th Aug 2020, 5:21 PM
Jiten
Jiten - avatar
8 Answers
27th Aug 2020, 5:33 PM
Namit Jain
Namit Jain - avatar
+ 4
Jiten actually your code also doesn't have a comma 😆 I modified your code and didn't make a new one! Thanks for pointing out that! You're welcome 🙃
28th Aug 2020, 6:41 PM
Namit Jain
Namit Jain - avatar
+ 3
In line 8, f should be inside the bracket! return (f"your text")
27th Aug 2020, 5:26 PM
Namit Jain
Namit Jain - avatar
+ 2
The num_1 list is wrong It should have all the strings Try this: num_1 = ['1','2','3','4','5','6','7','8','9']
27th Aug 2020, 5:25 PM
Namit Jain
Namit Jain - avatar
+ 2
Where have you defined sa?
27th Aug 2020, 5:27 PM
Namit Jain
Namit Jain - avatar
+ 2
In line 14, Don't use double quotes inside double quotes! Instead use single quotes
27th Aug 2020, 5:28 PM
Namit Jain
Namit Jain - avatar
+ 2
What is eu.[-1], Remove that . (dot) It should be eu_l[-1]
27th Aug 2020, 5:30 PM
Namit Jain
Namit Jain - avatar
+ 2
thanks Namit Jain it works :) by the way just put a comma(,) b/w feb and mar
28th Aug 2020, 5:17 PM
Jiten
Jiten - avatar