Skip to content

Make script more backwards compatible by removing f-strings #2

@jkras

Description

@jkras

If using a python version < 3.6, f-strings don't work. The error message suggests a syntax error.

File "atlas-starter-2.py", line 54
  print(f"I inserted {inserted_count} documents.")
                                                  ^
SyntaxError: invalid syntax

Given our primary goal with this script, I'd suggest using a more widely used string formatting convention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions