Python for Engineers

Solve Problems by Coding Solutions - A Complete solution for python programming

Blog Pages

▼

Count of character repetition in a string

›
word=str(raw_input('Enter the string:')) n=raw_input('Enter the character to search in string:') c=0 for i in word:     ...

To check a string is palidrome or not

›
k=raw_input('Enter a string:  ') if k==k[::-1]:     print 'String is palidrome' else:     print 'String is not pali...

Find the Armstrong Number upto a number

›
# Compatible in Python 2.7 k=int(raw_input('Enter the range of number:')) for n in range(k):  sum=0  temp=n  y=len(str(n))  wh...

Fibonacci sequence using functions for N numbers

›
# Compatible in Python 2.7 def recur_fibo(n):    if n <= 1:        return n    else:        return(recur_fibo(n-1) + recur_fibo(n-...

Multiplication Table

›
# Compatible in Python 2.7 num = int(raw_input("Display multiplication table of? ")) for i in range(1, 21):        print num,...
‹
›
Home
View web version
Powered by Blogger.