Python Forum
Simple Question - ' defined as "a". ?'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Question - ' defined as "a". ?'
#4
Hi rob101

Thank you so much for your kind response and explaination.

I'm very beginner so..I have no idea what I have to do..

1) You mean I need to make a file - (1) a.py in the same directory,Right?

2) How can I Save this as the script that is doing the import ?

1
import a

3) I tried to run again but they showed me another error as the following:

AttributeError : module 'a' has no attribute 'sum'.

Thanks

Ryan.
Reply


Messages In This Thread
Simple Question - ' defined as "a". ?' - by Ryan012 - May-25-2023, 01:37 PM
RE: Simple Question - ' defined as "a". ?' - by Ryan012 - May-25-2023, 03:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Very Beginner question on simple variables Harvy 1 1,040 Apr-12-2024, 12:03 AM
Last Post: deanhystad
  Very simple question about filenames and backslashes! garynewport 4 5,203 Jan-17-2023, 05:02 AM
Last Post: deanhystad
  Python Tkinter Simple Multithreading Question AaronCatolico1 5 3,755 Dec-14-2022, 11:35 PM
Last Post: deanhystad
  A simple "If...Else" question from a beginner Serena2022 6 3,203 Jul-11-2022, 05:59 AM
Last Post: Serena2022
  Simple arithmetic question ebolisa 5 3,246 Dec-15-2021, 04:56 PM
Last Post: deanhystad
  Simple Python script, path not defined dubinaone 3 3,970 Nov-06-2021, 07:36 PM
Last Post: snippsat
  Simple code question about lambda and tuples JasPyt 7 4,992 Oct-04-2021, 05:18 PM
Last Post: snippsat
Big Grin question about simple algorithm to my problem jamie_01 1 2,328 Oct-04-2021, 11:55 AM
Last Post: deanhystad
  Simple question 1234 4 3,236 Dec-04-2020, 12:29 PM
Last Post: DeaD_EyE
  Simple Timer Question cranberrica 3 2,992 Jun-22-2020, 06:29 PM
Last Post: cranberrica

Forum Jump:

User Panel Messages

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