#๐Ÿ”’ What am I doing wrong?

25 messages ยท Page 1 of 1 (latest)

true marsh
round cobaltBOT
#

@true marsh

Python help channel opened

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.

steady belfry
#

Different data types ... Str and int can't be sum...

stiff acorn
#

did you save the file?

blazing sparrow
blazing sparrow
steady belfry
blazing sparrow
stiff acorn
#

also, are you sure you're running the right file? tests.py is in your .venv dir

steady belfry
#

Look at the compiler (code) and the code written in the test.py...

frank crescent
#

The code is erroring on the line
print(name + str which isn't in the code you are showing

iron sierra
#

Send full code

#

Did u activate ur venv?

true marsh
#

Uh

true marsh
iron sierra
#

venv

#

Send ur full code

#

!code

round cobaltBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

iron sierra
#

If none else works try using fstrings

#

Just try giving it a shot

#

and lmk if issue persists

round cobaltBOT
#
Python help channel closed for inactivity

This help channel has been closed. 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.