What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-11 04:02:04
Triangle Quest
# Triangle Quest in Python - Hacker Rank Solution # Python 3 for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also # Triangle Quest in Python - Hacker Rank Solution START print(int(i * 10**i / 9)) ... Add solution -
Other 2021-09-10 14:29:01
Network Scanner #2
import os import platform from datetime import datetime net = input("Enter the Network Address: ") net1= net.split('.') a = '.' net2 = net1[0] + a + net1[1] + a + net1[2] + a st1 = int(input("Enter the Starting Number: ")) en1 = int(... Add solution -
Python 2021-09-10 01:57:01
odd or even python
# Python program to check if the input number is odd or even. # A number is even if division by 2 gives a remainder of 0. # If the remainder is 1, it is an odd number. num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} i... Add solution -
Python 2021-09-09 09:47:02
fibonacci logic in pthon in 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-09-09 08:38:01
how to make text game python
import time #this and time.sleep() is optional, I am just using it #game print('CoolKitty Presents') time.sleep(2) print('Text Game') print('1 Start') print('2 Exit') start = int(input('Press Binded Number')) #this creates an input in the console for use... Add solution -
Python 2021-09-09 05:34:03
TypeError: unsupported operand type(s) for %: 'list' and 'int'
a = [] k=1 for x in range(0,10): a.append(int(input())) for x in a: if (x % 2 == 0): k *= x print(k) Add solution
Best helpers
Ranking is empty