Use two different programs in the third

0 votes
Hey there....I have write 2 different programs and I want to use each one in the 3rd program without merge and only by calling them...how can I ??? the values are automatically store so, I need only specify there name not providing any value...

plz help....
Jan 24 in Python by Hannah
• 18,420 points
147 views

1 answer to this question.

+1 vote
You can treat each python file as a module and import it in the third file
answered Jan 24 by Priya
I have already  done this but it couldn't work. I don't want to give any value to imported module so it wouldn't run...the imported python file need  to only run to update values....and that values are used in current one....
Are you saying the imported module did not run when you provided it with a value?
If nothing else work.. you can call the imported module with passing values

you can save values in an external text file and acess from there.. tho i feel there shld be more efficient methods than this
Okay thanks

I'll try it

Related Questions In Python

0 votes
1 answer

What are the different types of data types one can use in Python?

Python provides an array of built-in constants, ...READ MORE

answered May 28, 2019 in Python by Harsh
• 260 points
121 views
+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,440 points
2,466 views
0 votes
1 answer

How can I compare the content of two files in Python?

Assuming that your file unique.txt just contains ...READ MORE

answered Apr 16, 2018 in Python by charlie_brown
• 7,780 points
1,038 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,481 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
1,113 views
0 votes
1 answer

How can I use the power function in python 2.7?

print(pow(3,4)) #this will return the exponentiation of 3 ...READ MORE

answered May 20, 2019 in Python by Mohammad
• 3,210 points
171 views
0 votes
1 answer