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, 2020 in Python by Hannah
• 18,520 points
1,166 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, 2020 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
3,285 views
0 votes
1 answer
+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
4,881 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,720 points
2,655 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,434 views
0 votes
1 answer
+5 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,790 points
4,070 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 21, 2019 in Python by Mohammad
• 3,230 points
1,417 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP