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
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
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
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
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
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
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
>
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
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
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
10 matches
Mail list logo