Formatted Printing
Vložit
- čas přidán 9. 09. 2024
- Formatted Printing
"Week: 3
Topic: Formatted Printing" IIT Madras welcomes you to the world’s first BSc Degree program in Programming and Data Science. This program was designed for students and working professionals from various educational backgrounds and different age groups to give them an opportunity to study from IIT Madras without having to write the JEE. Through our online programs, we help our learners to get access to a world-class curriculum in Data Science and Programming.
To know more about our Programs, please visit :
BSc Degree in Programming and Data Science - onlinedegree.i...
Diploma in Programming / Data Science - diploma.iitm.a...
1:50 2:22 (end = ' ')
3:40 (date format)
4:10 (comma, sep)
4:59 5:36 6:10 (end and sep)
8:15 9:15 (formatted printing)
10:09 (.format)
11:30 (string modulo operator)
13:36 14:30 (example)
15:30 16:43 17:25 (format specifier)
18:10 (example of format specifier)
19:58 (summary)
format specifiers = {:flags} format a value based on what flags are inserted
# .(number)f = round to that many decimal places
# :(number) = allocate that many spaces
# :0(number) = allocate and zero pad that many spaces
# :< = left justify
# :> = right justify
# :^ = center align
# :+ = use a plus sign to indicate positive value
# := = place sign to leftmost position
# : = insert a space before positive numbers
# :, = comma separator
# :% = percentage format
本当にありがとうございます
정말 고마워요
மிக்க நன்றி
आपका बहुत-बहुत धन्यवाद
আপোনাক অশেষ ধন্যবাদ
Thank you very much
చాలా ధన్యవాదాలు
मुरी मुरी धन्यवाद
Ευχαριστώ πολύ
ખુબ ખુબ આભાર
আপনাকে অনেক ধন্যবাদ
വളരെ നന്ദി
ತುಂಬ ಧನ್ಯವಾದಗಳು
非常感谢
非常感謝
खूप खूप धन्यवाद
tusen takk
большое спасибо
ਤੁਹਾਡਾ ਬਹੁਤ ਧੰਨਵਾਦ
ଆପଣଙ୍କୁ ଅନେକ ଧନ୍ୟବାଦ
नैकधन्यवादाः
Best professor for python
baie dankie
Thank you!
Спасибо
תודה רבה
here 5 'd' is used since 1 is an integer.. what if we want to print special characters or alphabets in a similar pattern?
s should be used but with this same code, {0:5s} doesn't make the format to be 5 characters long hence space is not printed
Danke
Gracias.
Sab diff language mai thank you kya likh rhe ho?😂😂
lord niraj 🙌
Merci Beaucoup.
थैंक्यू
Teşekkürler
ধন্যবাদ
Merci
arigato