1#Convert number or string to integer, throwing away decimal value.2i = 10.13int_i = int(i) #1045#Or, truncate to whole number (same thing).6import math
78k = 10.19int_k = math.trunc(k) #10
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content