This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fantasy-name": "Restaurant fantasy name", | |
"company name": "Restaurant company name", | |
"logo": "Restaurant logo", | |
"CNPJ": "Restaurant CNPJ", | |
"phone": "Restaurant phone", | |
"telephone": "Restaurant telephone", | |
"website": "Restaurant website", | |
"category": [ | |
"Fast Food", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" A program that returns a list that contains only the elements that are common between the lists (without duplicate). | |
The program should work with list of different sizes""" | |
import itertools | |
import random | |
a = random.sample(range(100), 50) | |
b = random.sample(range(200), 10) | |
#a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 8] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_input = input("Please type a word:\n") | |
if user_input == user_input[::-1]: | |
print("You just typed a palindrome") | |
else: | |
print("You didn'type a palindrome") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] | |
even_elements = [i for i in a if i%2 == 0] | |
print(even_elements) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check_input(user_input): | |
allowed = ["rock", "paper", "scissors"] | |
if user_input in allowed: | |
return user_input | |
return check_input(input("Please enter a valid input: ")) | |
print(""" | |
Welcome to rock, paper, scissors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dl> | |
{% for key, value in _dict.iteritems() %} | |
<dt>{{ key }}</dt> | |
<dd>{{ value }}</dd> | |
{% endfor %} | |
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set __COMPAT_LAYER=RunAsInvoker | |
start appName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rundll32 sysdm.cpl,EditEnvironmentVariables |
OlderNewer