Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

guzzettg Group Title

I tried to run a program but it gives me a syntax error on this line print "Hello there! It is so great to meet you," The final " is highlighted in red, but I don't think it is an error. The program is not running. I also tried the simple Hello World program but the result is the same. Same invalid syntax message. I am using a Linux shell. Any suggestion why this is happening?

  • 2 years ago
  • 2 years ago

  • This Question is Open
  1. _philippe Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Probably you have a mismatch and the last " is an opening one and is not closing the string.

    • 2 years ago
  2. estudier Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Does it do same if you use ' instead of " ?

    • 2 years ago
  3. nidhie.raichura Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Could you post the code?

    • 2 years ago
  4. krithika Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    correct spaces are fundamental to shell scripting.. did you check that???

    • 2 years ago
  5. salim Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    As nidhie.raichura said. Please post code and error That you getting...

    • 2 years ago
  6. rsmith6559 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    If you're using any of the Bourne or C shells, there is no print program or builtin command. You use echo instead: echo "Hello shell World!"

    • 2 years ago
  7. krithika Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    just look on this if it helps you http://www.linuxcommand.org/wss0100.php

    • 2 years ago
  8. jasonlee_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok people. That was all good posts but did you remember ( ) like print ("Hello World") -> that is the only possible way. The first answer could have been the big possibility, but I am just adding on. Keep posting good questions!!

    • 2 years ago
  9. _philippe Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Select the line and paste it in idle. It works. The error is not on this line but on a previous line.

    • 2 years ago
  10. estudier Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    @jasonlee_1 I thought that print is only a function in Python 3 (and voluntary in Python 2.7)

    • 2 years ago
  11. jasonlee_1 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    @estudier Yes you are right!! But I was talking about the Python version 2.7.3 & 3.3.0 (the current main downloadable version) And thank you for clarifying! Thanks! Have a great day

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.