alberto72 Posted August 14, 2017 Share Posted August 14, 2017 (edited) Why import vs number = "123" vs.Message("Type=", type (number) ) returns : "Types =" instead of "Types =int" ? Thanks Edited August 14, 2017 by alberto72 Quote Link to comment
Stephen Sorenson Posted August 14, 2017 Share Posted August 14, 2017 by putting 123 in quotes you are telling python to regard it as a string. Also for the message dialog I believe you have to convert to string so this code should work: import vs number = 123 vs.Message("Type=" + str(type (number))) Quote Link to comment
alberto72 Posted August 14, 2017 Author Share Posted August 14, 2017 It works as I expected ! Thanks ! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.