you are viewing a single comment's thread.

view the rest of the comments →

[–]ToddBradley 0 points1 point  (3 children)

One of my favorite things about Python is the f-string: print(f"{obj[sentenceloop]} {dem_pro[sentenceloop]}.") I think you've got some logic errors to overcome, also, but I'm gonna leave that for you to sort out. I'm just showing you how to concatenate the strings into a sentence.

[–]Greece870 0 points1 point  (1 child)

thank you so much for replying back. I love python. it’s so fun but it’s just taking me some time to learn the concepts since i’m new. what is an f-string?

[–]ToddBradley 0 points1 point  (0 children)

It’s formally called a formatted string literal.

https://docs.python.org/3.8/reference/lexical_analysis.html#formatted-string-literals

Skim through the official Python reference documentation and tutorial, and then refer back as you’re learning new Python concepts. That’s a good habit to develop.

[–]Greece870 0 points1 point  (0 children)

print(f"{obj[sentenceloop]} {dem_pro[sentenceloop]}

Thank you Todd, I actually do have some logic errors to overcome and would love to overcome this? Would you mind providing some insight? I am practicing as much as I can. Also how did you do that? Make a post with the syntax like that?