What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-27 01:50:04
how to reverse word order in python
## initializing the string string = "I am a python programmer" ## splitting the string on space words = string.split() ## reversing the words using reversed() function words = list(reversed(words)) ## joining the words and printing print(" ... Add solution -
Python 2022-03-11 18:00:01
run python script on heroku
Sure, you need to do a few things: Define a requirements.txt file in the root of your project that lists your dependencies. This is what Heroku will use to 'detect' you're using a Python app. In the Heroku scheduler addon, just define the command you ne... Add solution -
-
Python 2022-03-06 11:10:04
python permutation
# A Python program to print all permutations using library function from itertools import permutations perm = permutations([1, 2, 3]) for i in list(perm): print (i) # (1, 2, 3) # (1, 3, 2) # (2, 1, 3) # (2, 3, 1) # (3, 1, 2) # (3, 2, 1) Add solution -
-
Python 2022-01-31 22:11:21
python projects
# I understand that this isn't Grepper's primary use but here are some # fun little projects that I've found (self taught) to be really fun and # educational! def beginner(): # Beginner Projects beginner_proj =""" Everyone has to... Add solution