Skip to content
Snippets Groups Projects
Commit 17425089 authored by Ganesh's avatar Ganesh
Browse files

lets see

parents
Branches
No related tags found
No related merge requests found
print("hello world")
\ No newline at end of file
userName = input("Enter Your Name: ")
print(userName)
num1 = int(input("Enter First No: "))
num2 = int(input("Enter Second No:"))
print(num1+num2)
print("The sum is: ",num1+num2)
\ No newline at end of file
for i in range (1,100):
if(i%2==0):
print(i)
i=1
while(i<100):
if(i%2==0):
print(i)
i=i+1
\ No newline at end of file
for i in range(50,20,-1):
if(i%2==1):
print(i)
\ No newline at end of file
s=input("Enter the String :")
n=len(s)
print(n)
\ No newline at end of file
s=input("Enter the String :")
n=len(s)
if(n>=2):
print(s[0],end="")
print(s[1],end="")
print(s[n-2],end="")
print(s[n-1])
else:
print("Empty String")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment