jetbrains-academy / introduction_to_python

Introduction to Python course
MIT License
42 stars 27 forks source link

Example is not correct Data Structures / Join Method #216

Closed edutools-service closed 11 months ago

edutools-service commented 1 year ago

Python is a programing language is not the correct output "Python is a programming is a language" is the correct output

kochaika commented 11 months ago

Hi! Thank you for your feedback.

In the example, list_ have two elements (strings)

list_ = ['Python', 'programming language']

So sep.join(list_) will joint two elements. This is equivalent to: 'Python' + ' is a ' + 'programming language'

So, there is no error here.