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
# recebe um numero e retorna o algorismo romano | |
def dojo(input): | |
# Letras: C, L, X, V, I | |
# tuplas = [('C', 100),('XC', 90),('L', 50),('XL', 40),('X', 10),('IX', 9),('V', 5),('IV', 4),('I', 1)] | |
tuplas = [('C', 100),('L', 50),('X', 10),('V', 5),('I', 1)] | |
resultado = '' | |
for romano, numero in tuplas: |
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
//Routes.php | |
/* login */ | |
Route::get('login', 'BaseController@getLogin'); | |
Route::post('login', ['before' => 'csrf', 'uses' => 'BaseController@postLogin']); | |
//LoginController.php | |
class LoginController extends BaseController | |
{ | |
public function getLogin() |