#๐ String formatting
18 messages ยท Page 1 of 1 (latest)
@willow kernel
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Your output differs from the expected output.
Your code is ```py
a = int(input())
b = int(input())
print(f'{a}{b}={ab}')```
Your code doesn't use f-string's = sign feature.
For example your code outputs 9*5=45 when it's supposed to output a*b=45.
how i post to make go a*b=45 i'm still learning python
All the information is in the task description you posted.
Note: print(f'{2*4=}') outputs the string "2*4=8" using f-string's = sign feature.
Hint: You're doing too much, read the Note and try that
so like this
print(f'{9*5=}')
NVM I GOT IT
it (f'{a*b=}')
tnx @mortal light @sacred orbit
idk why i made that simple thing that hard
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ String formatting