What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-14 20:56:06
is_prime in python
# Program to check if a number is prime or not #too take the input from user use "num: int = int(input('Give the value of num '))" num: int = int(input('Give the value of Num: ')) # define a variable felix felix = False # prime numbers are gr... Add solution -
Python 2021-10-14 18:29:12
Python Write a program that asks the user to enter 3 numbers. Create variables called total and average that hold the sum and average
print("Input some integers to calculate their sum and average. Input 0 to exit.") count = 0 sum = 0.0 number = 1 while number != 0: number = int(input("")) sum = sum + number count += 1 if count == 0: print("Input some numb... Add solution -
Python 2021-10-13 01:49:04
python fibonacci sequence for loop
#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 2021-10-12 21:59:04
taking String input from user in python
name = input("What is your name?\n") # Asks the user 'What is your name?' and stores it in the 'name' variable print("You said your name was " + name) number = int(input("Please select a random number:\n")) # Will get input... Add solution -
Other 2021-10-11 13:34:14
alphabet rangoli hackerrank solution
# Alphabet Rangoli in Python - HackerRank Solution def print_rangoli(size): # your code goes here # Alphabet Rangoli in Python - HackerRank Solution START width = size*4-3 string = '' for i in range(1,size+1): for j in range(... Add solution -
Python 2021-10-11 01:49:02
ddos python
from scapy.all import * source_IP = input("Enter IP address of Source: ") target_IP = input("Enter IP address of Target: ") source_port = int(input("Enter Source Port Number:")) i = 1 while True: IP1 = IP(source_IP = sour... Add solution -
Python 2021-10-10 05:16:03
fabbinacci 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
Best helpers
Ranking is empty