FaZant
Posts: 3
Joined: Sun Jan 14, 2018 1:02 pm

What is comment

Mon Jan 15, 2018 12:55 pm

My python book for (absolute) beginners doesn't give an answer.
What does the sentence

# -*- coding: utf-8 -*-

do?

# is supposed to start a non-executable comment? What does -*- do/mean?
This sentence is supposed to load german letters? How can it do that, if it is a comment?
Must be a stupid question, have been searching for half an hour now.
Thanks!
Frans

SurferTim
Posts: 1800
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: What is comment

Mon Jan 15, 2018 12:59 pm



FaZant
Posts: 3
Joined: Sun Jan 14, 2018 1:02 pm

Re: What is comment

Mon Jan 15, 2018 1:07 pm

Thanks.
A magic comment! Didn't know Harry Potter was involved :shock:
But this definitely answers my question :D
Still a long way to go.
Frans

Return to “Beginners”