• 0 Posts
  • 64 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle




  • You typically learn to feel the accelerator and brake with one foot but just engage the clutch (ie, all the finesse is letting the clutch out). But you know this. All your muscle memory works like that. When you switch to automatic, just use the one foot and it works much better.

    You have probably already worked that out but it’s handy advice if you’re a passenger in an automatic with a first-time driver who is used to manual.











  • How is that checker configured?

    It might be doing something like this:

    import student_module
    student_module.main()
    

    and because you’re already invoking main as the module is imported, it’s getting stuck the second time around. Maybe add some indicative print at the entrypoint to your main function.

    Another reply in here has supplied the standard idiom for making a module executable:

    if __name__ == "__main__":
      main()