python - Endless Syntax Errors for sqlite in terminal -


I am trying to restore sqlite3 and make the database, but I have trouble initially. I go to the terminal and start some things by typing sqlite3 and I get the following signal:

  sqlite & gt;   

I am installing SQL Academy and am trying to work through the tutorial, but with the example:

  & gt; & Gt; & Gt; Import sqlalchemy & gt; & Gt; & Gt; Sqlalchemy .__ version__ 0.7.0   

They are typing in the terminal, but my code shows an error:

  sqlite & gt; Import skelechmy; Error: Near "Import": Syntax Error   

Is there any cover that I should use in the terminal so that I can type in Python? Do I need to write, compile and run all the examples separately or is this an easy way?

I know that it looks obscure, but I think I am doing something very obvious wrong. It is also new to know what it is.

That's because you are running in the squirt terminal. The sample code should be run from the python terminal.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -