Skip to main content

AttributeError: 'int' object has no attribute 'lower'

Comments

3 comments

  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    I will run some Python code and get back to you. Great to see some Python AZNB coding going on! We must stick together!

    *****

    I think you just have the parameters in the incorrect order.

    Try:

    agent.place("back",1) instead of agent.place(1,"back")

    If you want the agent to place each time in the loop, remember to indent that command, so it is part of the looping.

     

    Let me know how it goes! We are planning a Python get together this summer!

    0
  • Yeray Revuelta

    Sorry for the late reply but it worked, thanks! I was sticking to the tutorial where they were showing the use of agent.place(1,"back") but I guess thats some erratum.

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    Oh dear, is that i the reference doc still? I will try and find it if it is!

    ****************** Andrew Mulholland ****************************

    I'm having trouble finding that tutorial, if it is still live somewhere... can you help me locate it, please?

     

    In any event, glad to help! We coders must stick together! I'm looking forward to a Python get-together this summer! Stay tuned!

    0

Please sign in to leave a comment.