If lazy 💤
>>> n = 1.12345 >>> print(f'Number is 0{n:0.2f}') Number is 01.12
confused about string formatting
|
|
Messages In This Thread |
confused about string formatting - by barryjo - Mar-05-2022, 09:45 PM
RE: confused about string formatting - by deanhystad - Mar-05-2022, 10:11 PM
RE: confused about string formatting - by barryjo - Mar-05-2022, 10:12 PM
RE: confused about string formatting - by snippsat - Mar-05-2022, 10:23 PM
RE: confused about string formatting - by barryjo - Mar-05-2022, 10:33 PM
RE: confused about string formatting - by deanhystad - Mar-05-2022, 10:46 PM
RE: confused about string formatting - by barryjo - Mar-05-2022, 10:48 PM
RE: confused about string formatting - by snippsat - Mar-06-2022, 02:03 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Formatting DateTime string and and converting it from AM/PM to 24 hours | tester_V | 2 | 233 |
Jun-08-2024, 05:16 PM Last Post: tester_V |
|
String int confused | janeik | 7 | 1,283 |
Aug-02-2023, 01:26 AM Last Post: deanhystad |
|
Formatting a date time string read from a csv file | DosAtPython | 5 | 1,654 |
Jun-19-2023, 02:12 PM Last Post: DosAtPython |
|
I am confused with the key and value thing | james1019 | 3 | 1,089 |
Feb-22-2023, 10:43 PM Last Post: deanhystad |
|
String formatting (strptime) issues | Henrio | 2 | 978 |
Jan-06-2023, 06:57 PM Last Post: deanhystad |
|
string formatting | barryjo | 7 | 2,260 |
Jan-02-2022, 02:08 AM Last Post: snippsat |
|
Help with string formatting in classes | brthurr | 6 | 12,598 |
Dec-17-2021, 04:35 PM Last Post: Jeff900 |
|
Pandas confused | DPaul | 6 | 2,771 |
Sep-19-2021, 06:45 AM Last Post: DPaul |
|
is and '==' i'm confused | hshivaraj | 6 | 2,874 |
Sep-15-2021, 09:45 AM Last Post: snippsat |
|
Confused with 'flags' | tester_V | 10 | 5,208 |
Apr-12-2021, 03:03 AM Last Post: tester_V |