Re: Print statement

2020-01-28 Thread Frank Millman
On 2020-01-28 12:14 PM, L A Smit wrote: Please help me with this. squares =input("\nSquares: ") print(float((squares) *float(.15)) *(1.3)) Cant print answer.   print(float((squares) * float(.15)) *(1.3)) TypeError: can't multiply sequence by non-int of type 'float' You have some superfluo

Re: Print statement not printing as it suppose to

2013-09-20 Thread Dave Angel
On 20/9/2013 17:57, Sam wrote: > > print("\nThe total amount required is ", total ) > > > ('\nThe total amount required is ', 3534) > > ===> the problem is obviously on the last print statement that is supposed to > print the outut Others have pointed out the version discrepancy. But I'll also

Re: Print statement not printing as it suppose to

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 7:57 AM, Sam wrote: > car=int(input("Lamborghini tune-up:")) > print("\nThe total amount required is ", total ) > OUTPUT > ('\nThe total amount required is ', 3534) As others have said, this output indicates that you're running under a Python 2.x interpreter. I strongly re

Re: Print statement not printing as it suppose to

2013-09-20 Thread John Gordon
In <05bbf1a3-6480-48ee-8984-2482b90c7...@googlegroups.com> Sam writes: > print("\nThe total amount required is ", total ) > OUTPUT > ('\nThe total amount required is ', 3534) In older versions of python (like the one you are using), 'print' is a statement instead of a function. In other word

Re: Print statement not printing as it suppose to

2013-09-20 Thread Emiliano Carlos de Moraes Firmino
Remove both brackets in last line, You are creating a tuple in last statement not making a function call. 2013/9/20 Sam > hi everybody i am just starting to learn python, i was writing a simple > i/o program but my print statement is acting weird. here is my code i want > to know why it prints

Re: Print statement not printing as it suppose to

2013-09-20 Thread Tim Delaney
On 21 September 2013 07:57, Sam wrote: > hi everybody i am just starting to learn python, i was writing a simple > i/o program but my print statement is acting weird. here is my code i want > to know why it prints this way. thank you > > print("\nThe total amount required is ", total ) > > > OUTP

Re: Print statement isn't showing up?

2008-08-06 Thread Lie
On Aug 6, 2:28 am, "Timothy Grant" <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 9:09 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Hi, > > > I have the following code: > > > def ReplaceExternalWithCopy( localDir, remoteDir ): > >     print "Removing external local directory:", localDir >

Re: Print statement isn't showing up?

2008-08-05 Thread Terry Reedy
Robert Dailey wrote: I have the following code: Python version? Plafform? def ReplaceExternalWithCopy( localDir, remoteDir ): print "Removing external local directory:", localDir rmdirs( localDir ) vfxrepo.copy( remoteDir, localDir ) I noticed that the print statement above do

Re: Print statement isn't showing up?

2008-08-05 Thread Robert Dailey
On Tue, Aug 5, 2008 at 2:28 PM, Timothy Grant <[EMAIL PROTECTED]>wrote: > On Tue, Aug 5, 2008 at 9:09 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have the following code: > > > > > > def ReplaceExternalWithCopy( localDir, remoteDir ): > > print "Removing external local direc

Re: Print statement isn't showing up?

2008-08-05 Thread Timothy Grant
On Tue, Aug 5, 2008 at 9:09 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following code: > > > def ReplaceExternalWithCopy( localDir, remoteDir ): > print "Removing external local directory:", localDir > rmdirs( localDir ) > vfxrepo.copy( remoteDir, localDir ) > > I