What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-27 15:55:01
how to return Fibbonaci(n) python
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
Python 2022-02-12 07:45:15
how to make otp generator in python
# Python Program for simple OTP genertaor import random as r # function for otp generation def otpgen(): otp="" for i in range(4): otp+=str(r.randint(1,9)) print ("Your One Time Password is ") print (otp) otpgen() Add solution -
Python 2022-02-02 23:36:59
convert integer to binary in python
# Python program to convert decimal to binary # Function to convert Decimal number # to Binary number def decimalToBinary(n): return bin(n).replace("0b", "") # Driver code if __name__ == '__main__': print... Add solution -
Python 2022-02-02 21:10:33
count iterator
# Python program to demonstrate # infinite iterators import itertools # for in loop for i in itertools.count(5, 5): if i == 35: break  ... Add solution -
Python 2022-02-02 17:25:23
fibonacci series program in python
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
TypeScript 2022-01-28 19:21:08
output percentage of vowels and consonants in a given file in python
# Python Program to Count Vowels and Consonants in a String str1 = input("Please Enter Your Own String : ") vowels = 0 consonants = 0 for i in str1: if(i == 'a' or i == 'e' or i == 'i' or i == 'o' or i == 'u' or i == 'A' or i == 'E'... Add solution -
Python 2022-01-24 17:42:20
python how to take the last digit of a number
# Python Program to find the Last Digit in a Number number = int(input("Please Enter any Number: ")) last_digit = number % 10 print("The Last Digit in a Given Number %d = %d" %(number, last_digit)) Add solution