Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

python command prompt in ptp

using $lang() {} for python.

$lang("Python") {
   print("c:/documents/files/commandprompt/python.py")
   print("enter a name:")
   x = input("c:/python.py/input>")
   print("hello, " + x + "! Welcome to the command prompt, Type '?' for help");
   a1 = input("c:/files/?" + x + ">");
}
#py = $(document).element("lang" + ?Input: + "Python");
$function getVari(pl, var) {
   $lang(pl); {
      $(./*[^/s]).ptp($(main).parameter("var"):$(main).variable([^/s].any;))
   }
   #x = getVari("Python", "a1");
   #i = 0;
   for (#i++;) {
   $(document).printLang(#x), (#py);
   }
} 

using ptp instead of python. using for to repeat the command prompt. Using $lang to open python editor.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

replace for by repore.

$lang("Python") {
   print("c:/documents/files/commandprompt/python.py")
   print("enter a name:")
   x = input("c:/python.py/input>")
   print("hello, " + x + "! Welcome to the command prompt, Type '?' for help");
   a1 = input("c:/files/?" + x + ">");
}
#py = $(document).element("lang" + ?Input: + "Python");
$function getVari(pl, var) {
   $lang(pl); {
      $(./*[^/s]).ptp($(main).parameter("var"):$(main).variable([^/s].any;))
   }}
   #x = getVari("Python", "a1");
   #i = 0;
   $(main).repore(#i) {
   $(document).printLang(#x), (#py);
} 
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading