Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Error with conditionals
Post: RE: Error with conditionals

Can you provide the full traceback error.
Beatenberg Homework 17 7,198 Oct-18-2017, 12:03 AM
    Thread: Error with conditionals
Post: RE: Error with conditionals

I tested your code and I get print("28 dias") when I type 1 and print("29 dias") when I type 0. What is the percentage for?
Beatenberg Homework 17 7,198 Oct-17-2017, 11:04 PM
    Thread: Looping over amount of attempts
Post: RE: Looping over amount of attempts

Nothing just used the part of the code that is going wrong to help illustrate what I mean.
Beatenberg Homework 4 6,255 Oct-17-2017, 07:47 AM
    Thread: Looping over amount of attempts
Post: RE: Looping over amount of attempts

So when the user fails for the 2nd time, line 64 should be true saying you have 1 more attempt. What is happening is it is still saying you have 2 more attempts from line 52. The user gets 3 attempts ...
Beatenberg Homework 4 6,255 Oct-17-2017, 03:10 AM
    Thread: Looping over amount of attempts
Post: Looping over amount of attempts

Hey so my code is about a username and password system. My issue is that after the user fails to input the correct details (from Intro) more than once it appears with the same message. What should be ...
Beatenberg Homework 4 6,255 Oct-15-2017, 11:08 PM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: RE: TypeError: can't multiply sequence by non-int ...

Pass_Total() comes into play after Pass_Discount() def Pass_Show(): print("Aussie Pass!") print("Please select a package and discount depending on age.") print("E.g. Package = 7") Pa...
Beatenberg Homework 12 13,730 Oct-10-2017, 10:14 PM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: RE: TypeError: can't multiply sequence by non-int ...

When I add int to both cost[0] * cost[1], the code repeats itself and never multiplies them. Why is this happening? def Pass_Calculate(cost): return int(cost[0]) * int(cost[1])
Beatenberg Homework 12 13,730 Oct-10-2017, 03:46 AM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: RE: TypeError: can't multiply sequence by non-int ...

What about with float? The full error is: Error:Traceback (most recent call last): File "F:\Computing\Term 3\Aussie Pass.py", line 67, in <module> Pass_Show() File "F:\Computing\Term 3...
Beatenberg Homework 12 13,730 Oct-10-2017, 03:28 AM
    Thread: Syntax error in def
Post: RE: Syntax error in def

Is there a way to say this is answered? Sorry new to this site.
Beatenberg Homework 8 6,334 Oct-09-2017, 10:05 AM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: RE: TypeError: can't multiply sequence by non-int ...

Great works but another error. Error:Traceback (most recent call last): File "F:\Computing\Term 3\Aussie Pass.py", line 67, in <module> Pass_Show() File "F:\Computing\Term 3\Aussie Pass...
Beatenberg Homework 12 13,730 Oct-09-2017, 09:34 AM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: RE: TypeError: can't multiply sequence by non-int ...

I printed cost[0] and cost[1] in the same function. This was the result and the code again with the change Error:Traceback (most recent call last): File "F:\Computing\Term 3\Aussie Pass.py", line 67...
Beatenberg Homework 12 13,730 Oct-09-2017, 06:54 AM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: RE: TypeError: can't multiply sequence by non-int ...

def Pass_Show(): print("Aussie Pass!") print("Please select a package and discount depending on age.") print("E.g. Package = 7") Pass_Package() def Pass_Package(): print("7 Day Pa...
Beatenberg Homework 12 13,730 Oct-09-2017, 05:46 AM
    Thread: TypeError: can't multiply sequence by non-int of type 'str'
Post: TypeError: can't multiply sequence by non-int of t...

Hello again, this time a type error is appearing with the following error (scroll down to the bottom of the post). The aim of this part is for the package to be multiplied by the discount then to be p...
Beatenberg Homework 12 13,730 Oct-09-2017, 03:57 AM
    Thread: Syntax error in def
Post: RE: Syntax error in def

I was about to ask that, you read my mind!!! Thank you as well!!
Beatenberg Homework 8 6,334 Oct-09-2017, 03:12 AM
    Thread: Syntax error in def
Post: RE: Syntax error in def

I knew it was going to something simple as that thank you and I will use BBCode for posting programs
Beatenberg Homework 8 6,334 Oct-09-2017, 02:43 AM
    Thread: Syntax error in def
Post: Syntax error in def

Hello so in my program when I try to run it, it comes up with Syntax error then highlights my def statement (To help explain I underlined the part that is highlighted). I do not know why this is happe...
Beatenberg Homework 8 6,334 Oct-09-2017, 01:56 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020