UPDATED ANSWER:

You can compose multiple format specifiers. Below, +.1f is used to keep the sign, and print to only 1 decimal place. and <10 is used to justify the string.

values = [-1.0, 2.2]

for value in values:
    print(f"someLjustedStrings{value:<+10.1f}someLjustedStrings")

OLD ANSWER:

You can try this:

values = [-1.0, 2.2]

for value in values:
    print(f"someLjustedStrings{['+', '-'][value<0]}{abs(value):<10}someLjustedStrings")

Output:

someLjustedStrings-1.0       someLjustedStrings
someLjustedStrings+2.2       someLjustedStrings

< followed by int for ljust

> followed by int for rjust

EDIT:

If you want to ljust by variable:

LJUST = {'value': 10}
values = [-1.0, 2.2]

for value in values:
    print(f"someLjustedStrings{['+', '-'][value<0]}{abs(value):<{LJUST['value']}}someLjustedStrings")

Output:

someLjustedStrings-1.0       someLjustedStrings
someLjustedStrings+2.2       someLjustedStrings
Answer from Sayandip Dutta on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_string_ljust.asp
Python String ljust() Method
Note: In the result, there are actually 14 whitespaces to the right of the word banana. The ljust() method will left align the string, using a specified character (space is default) as the fill character.
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ methods โ€บ string โ€บ ljust
Python String ljust()
The string ljust() method returns a left-justified string of a given minimum width.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-string-ljust-method
Python String ljust() Method - GeeksforGeeks
July 23, 2025 - Python ljust() method is used to left-justify a string, padding it with a specified character (space by default) to reach a desired width.
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ python โ€บ string_ljust.htm
Python String ljust() Method
The Python String ljust() method is used to left align the string with the width specified. If the specified width is more than the length of the string, then the remaining part of the string is filled with fillchar.
๐ŸŒ
Python Reference
python-reference.readthedocs.io โ€บ en โ€บ latest โ€บ docs โ€บ str โ€บ ljust.html
ljust โ€” Python Reference (The Right Way) 0.1 documentation
ljust ยท Edit on GitHub ยท Returns the string left justified in a string of specified length. str. ljust(width[, fillchar]) width ยท Required. The width of the field containing the string. fillchar ยท Optional. Specifies the padding character (default is a space).
๐ŸŒ
AskPython
askpython.com โ€บ python โ€บ string โ€บ python-string-ljust-rjust-functions
Python String ljust() and rjust() functions - AskPython
April 5, 2023 - The Python string ljust() function accepts characters for padding in an input string by adding it to the right of the input string.
๐ŸŒ
Toppr
toppr.com โ€บ guides โ€บ python-guide โ€บ references โ€บ methods-and-functions โ€บ methods โ€บ string โ€บ ljust โ€บ python-string-ljust
Python ljust() function | Why do we use Python String ljust() function? |
September 27, 2021 - Python ljust() is a built-in function that returns a left-justified string according to the width specified and fills the remaining spaces with blank spaces if the character argument is not passed.
Find elsewhere
๐ŸŒ
Learn By Example
learnbyexample.org โ€บ python-string-ljust-method
Python String ljust() Method - Learn By Example
April 20, 2020 - The ljust() method returns left-justified string of length width. Padding is done using the specified fillchar (default is an ASCII space).
๐ŸŒ
Javatpoint
javatpoint.com โ€บ python-string-ljust-method
Python String | ljust() method with Examples - Javatpoint
Python Function Programs ยท capitalize() casefold() center(width ,fillchar) count(string,begin,end) encode() endswith(suffix ,begin=0,end=len(string)) expandtabs(tabsize = 8) find(substring ,beginIndex, endIndex) format(value) index(subsring, beginIndex, endIndex) isalnum() isalpha() isdecimal() isdigit() isidentifier() islower() isnumeric() isprintable() isupper() isspace() istitle() isupper() join(seq) ljust(width[,fillchar]) lower() lstrip() partition() replace(old,new[,count]) rfind(str,beg=0,end=len(str)) rindex(str,beg=0,end=len(str)) rjust(width,[,fillchar]) rstrip() rsplit(sep=None, ma
๐ŸŒ
Python Principles
pythonprinciples.com โ€บ blog โ€บ string-ljust-explained
Python String ljust() explained โ€“ Python Principles
The method lets you pad a string with characters up to a certain length. The ljust method means "left-justify"; this makes sense because your string will be to the left after adjustment up to the specified length.
๐ŸŒ
Vultr Docs
docs.vultr.com โ€บ python โ€บ standard-library โ€บ str โ€บ ljust
Python str ljust() - Left-Justify String | Vultr Docs
December 26, 2024 - The str.ljust() method in Python is a straightforward yet versatile function used for string manipulation, specifically for left-justifying text within a specified width.
๐ŸŒ
TutorialKart
tutorialkart.com โ€บ python โ€บ python-string-ljust
Python String ljust() - Examples
April 3, 2023 - Python String ljust() is used to left align the given string in specified space (length) and optionally fill the left out space with the specified character.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-a-stringljust-in-python
What is a string.ljust in Python?
The ljust method returns a left-justified string of length as width by adding a specified fill character to the end of the string.