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, #مشاريع_برمجية, #مهارات_برمجية
Nesta página do site você pode assistir ao vídeo on-line 10 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário MF2Learn 09 Abril 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 60 vezes e gostou 8 espectadores. Boa visualização!