Learning to program - IDE PYTHON

-1

I'm learning to program I chose the Python language and I'm using VScode I downloaded vscod. When I press "f5" to rotate the code, it error.

WhatdoIneedtodo,toopena"cmd" that I can type and test the codes?

    
asked by anonymous 17.11.2018 / 18:47

2 answers

0

This error is common, you have missed the line

# coding: utf-8

This should be the first line, you should put it in all the .py files you create with this editor.

The reason is that your editor uses this encoding to save the files, so you should indicate this to python by putting this information at the beginning of the file.

You can click on the link in the error message itself for more information:

https://www.python.org/dev/peps/pep-0263/ 
    
18.11.2018 / 00:14
-3

You gave an error because you have a non-ascii character in your program. On line 2 you wrote the letter "is", with accent, and probably your version of python does not accept accents. Update python or remove accent. I recommend reading the error messages and trying to understand them

    
17.11.2018 / 19:03