10 #Python - String Format F String
CODE :
String Format : using F-string
age = 30
text = 'My name is Mohanad, I am' + age
print(text)
----------------------------------------------------
age = 30
text = 'My name is Mohanad, I am' , age
print(text)
----------------------------------------------------
age = 30
text = f'My name is Mohanad, I am {age}'
print(text)
another example
price = 50
text2 = f'The price is {price} dollars'
text2 = f'The price is {price:.2f} dollars'
text3 = f'The price is {20 * 3} dollars'
print(text2)
print(text3)
WhatsApp : 009647812081244
#Python, #بايثون, #LearnPython, #تعلم_بايثون, #PythonForBeginners, #PythonProgramming, #برمجة, #Coding, #كود, #Programming, #برمجة_بايثون, #PythonTutorial, #تعلم_البرمجة, #PythonCourse, #كورس_بايثون, #CodingForBeginners, #برمجة_للمبتدئين, #DataScience, #تحليل_البيانات, #MachineLearning, #تعلم_الآلة, #AI, #ذكاء_اصطناعي, #Tech, #CodingLife, #كود_بايثون, #CodeNewbie, #مشاريع_برمجية, #مهارات_برمجية
On this page of the site you can watch the video online 10 with a duration of hours minute second in good quality, which was uploaded by the user MF2Learn 09 April 2025, share the link with friends and acquaintances, this video has already been watched 60 times on youtube and it was liked by 8 viewers. Enjoy your viewing!