print(int())

1

print(int())

By Beginner Spencer Mohr at Jun 30 2021

5

print string + int in python

By Beginner Elsie Dach at Dec 04 2020

1

python print int and string in same line

By Beginner Carlton Schinner at Jun 07 2021

0

int var def __init__(self,var=10): Initialize.var=var def display(): print var

By Beginner Stacy Fahey at Jun 27 2020

0

s=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()

By Beginner Ed Nicolas at Jun 22 2021

0

i=int(input("enter the number")); sum=0; pro=1; while(i>0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro);

By Beginner Devin McGlynn at May 27 2021


Related code examples


Code examples by languages