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
import re | |
def main(): | |
text = "en el examen nadie copia" | |
pattern = re.compile(r"((a|b)(a|b)*)*") | |
veces = 0 | |
for match in pattern.finditer(text): | |
if match.string[match.start():match.end()]: |
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
# import libreries | |
from datetime import datetime | |
from calendar import calendar | |
from tkinter import (Label,Tk,Button) | |
root = Tk() | |
year = int(datetime.now().date().strftime('%Y')) | |
root.title(f"Calendar - {year}") |
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
<?php | |
namespace App\Http\Controllers; | |
use Telegram\Bot\Api; | |
use Illuminate\Http\Request; | |
use App\Post; | |
class PostController extends Controller | |
{ | |
public function index(){ |