Python programming codes
43 subscribers
25 photos
1 video
83 files
82 links
Uploading All programming codes are updating Daily
ask doubts in comment box đŸŽâ˜‘ī¸
Download Telegram
#program to reverse a string
name = input('Enter a name : ')
print('Entered name is:',name)
#suresh
#us
#hserus
#print(name[::-1])

reverse = ""
for i in name:
reverse = i + reverse

print('Reversed value of {} is {}'.format(name,reverse))
#print the current date and time
import datetime

now = datetime.datetime.now()

print("Current date and time")

print(now.strftime("%Yyear%mmonth%dday%Hhours%Mminutes%Sseconds"))