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, #مشاريع_برمجية, #مهارات_برمجية
En esta página del sitio puede ver el video en línea 10 de Duración hora minuto segunda en buena calidad , que subió el usuario MF2Learn 09 abril 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 60 veces y le gustó 8 a los espectadores. Disfruta viendo!