@heyitsmarcus/

Module Example 3-1

Python 2.7

No description

fork
loading
Files
  • main.py
  • input_module.py
  • input_module.pyc
  • product_module.py
  • product_module.pyc

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.3230279308250974","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"I0RldmVsb3BlZCBvbiAyOCBKdW5lIDIwMTkKCiNpbXBvcnRpbmcgdGhlIG1vZHVsZXMKaW1wb3J0IGlucHV0X21vZHVsZQppbXBvcnQgcHJvZHVjdF9tb2R1bGUKCiNNYWluIFByb2dyYW0KI1NldHRpbmcgYWxsIHZhcmlhYmxlcyB0byB6ZXJvCiN0b3RhbD0wCm51bTE9MApudW0yPTAKCgojQ2FsbGluZyB0aGUgbW9kdWxlcwpudW0xLCBudW0yID0gaW5wdXRfbW9kdWxlLklucHV0TnVtcygpCnByb2R1Y3RfbW9kdWxlLkNhbGN1bGF0ZVByb2R1Y3QobnVtMSwgbnVtMik="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#Developed on 28 June 2019

#importing the modules
import input_module
import product_module

#Main Program
#Setting all variables to zero
#total=0
num1=0
num2=0


#Calling the modules
num1, num2 = input_module.InputNums()
product_module.CalculateProduct(num1, num2)