Code Monkey home page Code Monkey logo

Comments (4)

alexhwoods avatar alexhwoods commented on September 26, 2024

Hey Frank,

Are you using Python 2? Because that's what it looks like. If you're not,
just try replacing that line with print(word, ' ').

I'll look at it in more depth when I get to a computer. Thanks for reading
my blog!

  • Alex

On Mon, Aug 10, 2015, 9:54 AM Frank [email protected] wrote:

Hi,

thx for this inspiring notebook.
Sadly I get a SyntaxError in the 2nd. box

File "", line 16
print(word, end=' ')
^
SyntaxError: invalid syntax

[image: bildschirmfoto 2015-08-10 um 15 51 18]
https://cloud.githubusercontent.com/assets/2300206/9173047/d4dc6384-3f77-11e5-9ee7-b7a5a48a6ff6.png

Can you help pls?


Reply to this email directly or view it on GitHub
#2.

from alexhwoods.com.

alexhwoods avatar alexhwoods commented on September 26, 2024

Just ran the code myself in python 2, and I got the same error you did.
Here is how to make it python 2 compatible -
print word + ' '

On Mon, Aug 10, 2015 at 11:31 AM Alexander Woods [email protected]
wrote:

Hey Frank,

Are you using Python 2? Because that's what it looks like. If you're not,
just try replacing that line with print(word, ' ').

I'll look at it in more depth when I get to a computer. Thanks for reading
my blog!

  • Alex

On Mon, Aug 10, 2015, 9:54 AM Frank [email protected] wrote:

Hi,

thx for this inspiring notebook.
Sadly I get a SyntaxError in the 2nd. box

File "", line 16
print(word, end=' ')
^
SyntaxError: invalid syntax

[image: bildschirmfoto 2015-08-10 um 15 51 18]
https://cloud.githubusercontent.com/assets/2300206/9173047/d4dc6384-3f77-11e5-9ee7-b7a5a48a6ff6.png

Can you help pls?


Reply to this email directly or view it on GitHub
#2.

from alexhwoods.com.

Frankri avatar Frankri commented on September 26, 2024

Hi,

thx for your quick answer. I use Python 2.7.something. I will try your hint tomorrow - I live in Berlin (Germany) and we have near 11 pm. Give you a response asap.

Thank you and have nice day Frank

Am 10.08.2015 um 21:02 schrieb Alex Woods [email protected]:

Just ran the code myself in python 2, and I got the same error you did.
Here is how to make it python 2 compatible -
print word + ' '

On Mon, Aug 10, 2015 at 11:31 AM Alexander Woods [email protected]
wrote:

Hey Frank,

Are you using Python 2? Because that's what it looks like. If you're not,
just try replacing that line with print(word, ' ').

I'll look at it in more depth when I get to a computer. Thanks for reading
my blog!

  • Alex

On Mon, Aug 10, 2015, 9:54 AM Frank [email protected] wrote:

Hi,

thx for this inspiring notebook.
Sadly I get a SyntaxError in the 2nd. box

File "", line 16
print(word, end=' ')
^
SyntaxError: invalid syntax

[image: bildschirmfoto 2015-08-10 um 15 51 18]
https://cloud.githubusercontent.com/assets/2300206/9173047/d4dc6384-3f77-11e5-9ee7-b7a5a48a6ff6.png

Can you help pls?


Reply to this email directly or view it on GitHub
#2.


Reply to this email directly or view it on GitHub.

from alexhwoods.com.

Frankri avatar Frankri commented on September 26, 2024

Thx, no longer an error with word+' '

from alexhwoods.com.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.