Home / Expert Answers / Computer Science / hi-i-am-having-a-problem-with-my-python-code-nbsp-i-am-trying-to-use-functions-from-ticket-info-pa933

(Solved): Hi, I am having a problem with my Python code.  I am trying to use functions from Ticket_Info ...



Hi,

I am having a problem with my Python code. 

I am trying to use functions from Ticket_Info module I created.

When user enters A - it runs Cheapest_Flights fund, and when B - Fastest flight.

I am getting an Attribute Error though! Please help me with correcting a code!

This is my functions code:

 

 

And here trying to start a program:

1 \%run Ticket_Info.py???????

 

Please help! TIA :)

1 \%run Ticket_Info.py


We have an Answer from Expert

View Expert Answer

Expert Answer


As much as I can see your code is almost fine but one error I can identify is that missing parenthesis while calling the function in your main program
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe