What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-24 00:39:03
Write a function that tests whether a string is a palindrome
def palindrome_check(string): string = list(string) tmp = [] #remove any spaces for x in range(0, len(string)): if(string[x] != " "): tmp.append(string[x].lower()) #now reverse the string... Add solution -
Python 2021-09-23 08:35:07
complete python developer in 2020 zero to mastery
# Note: No semicolons needed. Comments: # # Tips: \n in string adds new line. \t adds new tab. len() measures length of item. int(), str(), float(), bool, etc converts items # Output: print(value) print("Hi!") # Variables my_variable = "Hi!... Add solution -
Python 2021-09-21 10:37:02
random number guessing game python
import random print("Welcome to random number gusser game") print("I will guss number from 1 to 100 ") Difficulty = str(input("What is your difficulty Easy or hard:- ")).lower() def difficiulty(Difficulty): random_number ... Add solution