How to launch a calculator using python in windows and ubuntu

Recommended Answers

All 4 Replies

Is your calculator written in Python code or is it a executable program?

it is a Executable program. it would be great if you answer how to lauch it in Kali linux

You use subprocess module.

import subprocess

calc_program = "path_to_program"
subprocess.call([clac_program])

Thank you very much its working...:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.