- ~~https://arthur-devs-blog.herokuapp.com~~ Coming soon!
This file contains hidden or 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
| using System; | |
| using System.Threading; | |
| using System.Linq; | |
| class Program { | |
| public static String[] nomes = {}; | |
| public static String[] pratosPrincipais = {}; | |
| public static String[] bebidas = {}; | |
| public static String[] sobremesas = {}; | |
This file contains hidden or 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 fizzbuzz(firstNumber, lastNumber): | |
| for number in range(firstNumber, lastNumber+1): | |
| if number % 3 == 0 and number % 5 == 0: | |
| print("FizzBuzz") | |
| elif number % 3 == 0: | |
| print("Fizz") | |
| elif number % 5 == 0: | |
| print("Buzz") | |
| fizzbuzz(1, 100) |
This file contains hidden or 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
| import requests | |
| # Replace with your username | |
| username = 'arthurdeveloper' | |
| with open('image.png', 'wb') as file: | |
| file.write(requests.get(f'https://github.com/{username}.png').content) | |
This file contains hidden or 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
| for i in range(6): | |
| print('* ' * i) |
This file contains hidden or 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 fib(termsQtt): | |
| term = 1 | |
| lastTerm = 0 | |
| terms = [] | |
| while len(terms) < termsQtt: | |
| terms.append(lastTerm + term) | |
| term, lastTerm = lastTerm, term+lastTerm | |
| return terms |