4 Replies - 423 Views - Last Post: 29 October 2017 - 03:09 PM Rate Topic: -----

#1 minty_mento  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 19-October 17

Hey, can someone please debug this for me?

Posted 19 October 2017 - 04:24 PM

Can someone please debug this for me? I'm pretty new to coding and i cant find out what's wrong with this. Whenever i open it it says invalid syntax and then closes immediately. \/
[>>> print ("This transaction is courtesy of Bank Of America™.")
This transaction is courtesy of Bank Of America™.
>>> recName = input("What is the name of the person on the other end?")
What is the name of the person on the other end?
>>> sName = input("What is your name?")
What is your name?
>>> code = input("What is the confirmation code?")
What is the confirmation code?
>>> print ("Okay,,", sName, "(, We will be with you shortly.")]

Of course there are some grammatical and spelling mistakes in there, but I can fix those.

Is This A Good Question/Topic? 0
  • +

Replies To: Hey, can someone please debug this for me?

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13492
  • View blog
  • Posts: 53,892
  • Joined: 12-June 08

Re: Hey, can someone please debug this for me?

Posted 19 October 2017 - 04:25 PM

Debugging typically requires the code.
Was This Post Helpful? 1
  • +
  • -

#3 minty_mento  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 19-October 17

Re: Hey, can someone please debug this for me?

Posted 19 October 2017 - 04:27 PM

[/>>> print ("This transaction is courtesy of Bank Of America™.")
This transaction is courtesy of Bank Of America™.
>>> recName = input("What is the name of the person on the other end?")
What is the name of the person on the other end?
>>> sName = input("What is your name?")
What is your name?
>>> code = input("What is the confirmation code?")
What is the confirmation code?
>>> print ("Okay,,", sName, "(, We will be with you shortly."]
:code:
I've tried everything i know, and i cant fix it. im pretty new to programming. Can someone please help a G out and help me debug this? Thanks!

This post has been edited by modi123_1: 19 October 2017 - 04:34 PM
Reason for edit:: In the future, please use the [code] tag button in the editor..

Was This Post Helpful? 0
  • +
  • -

#4 ndc85430  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 590
  • View blog
  • Posts: 2,487
  • Joined: 13-June 14

Re: Hey, can someone please debug this for me?

Posted 19 October 2017 - 09:03 PM

Look at the end of the last line.
Was This Post Helpful? 0
  • +
  • -

#5 jeremypmoss  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 15
  • Joined: 24-July 17

Re: Hey, can someone please debug this for me?

Posted 29 October 2017 - 03:09 PM

I'm using Python3 in a Jupyter Notebook. I can get the following output:

This transaction is courtesy of Bank Of America™.
What is the name of the person on the other end?Jim
What is your name?James
What is the confirmation code?123
Okay,, James (, We will be with you shortly.



Is that what you expected to see? If that's what your intended output is, then you'll need to change the very last character of the last line to `)` rather than `]`.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1