def printShoB() : #by D@CC #on 2024BFeb26 progName="printShoB" print("progName:",progName) print("This prints out the sho function.") print("so it can be 'copied' into the main program.") print("This function cannot be imported. Doh!") print("Issue 01: This only works in the main module") print("def sho(a,isP):") print(" vA=eval(a)") print(" tA=type(vA);") print(" #print(tA)") print(" chDubl=chr(65)") print(" chColon=chr(58)") print(" #print('chDubl:',chDubl)") print(" #chDub is the double quote character") print(" if tA in ['str']: vA=chDubl+vA+chDubl") # print(a+chColon,tA,vA) #print(' print(a,chDubl+":"+chDubl,tA,vA)') print(' print(a+chColon,tA,vA)') print("#end def sho") print("#then type") print('ss="abc"') print('sho("ss",1)') print(' that prints:') print("ss: abc") #def end printShoB.py