file_for_importing.py (Source)

x = 2 * 10
y = 100
def method_name():
    print(x)
print("other text in this file")
if __name__ == '__main__':
    method_name()
    print('sss')