Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/25/20 in all areas

  1. In viata Dumnezeu iti da, da' nu-ti baga si-n gura. Fa si tu ceva research sau pune pe cineva sa iti faca asta contra-cost Nu e ca si cum ai intreba pe cineva: "Cum fac o ciocolata calda" si gata. Tre' sa pui ceva efort in asta. Good luck.
    4 points
  2. Cadou de Craciun import random import sys import time # generate numbers from 1 to 30 mapped to red color NUMBERS = {number: 'red' for number in list(range(1, 31))} class Colors: """ ANSI color codes. """ # RED is used for all the numbers RED = '\033[91m' # GREEN is used for displaying computer's random # chosen number GREEN = '\033[92m' # BLUE is used for displaying user's chosen # number BLUE = '\033[94m' END = '\033[0m' def assign_color_to_number(number, color): """ Show ANSI colors in terminal for nicer UX. """ if color == 'red': return f'{Colors.RED}{number}{Colors.END}' elif color == 'green': return f'{Colors.GREEN}{number}{Colors.END}' elif color == 'blue': return f'{Colors.BLUE}{number}{Colors.END}' else: return number def print_table(numbers): """ Print a nice table with colorful numbers wrapped at 5. """ print('\n') for number, color in numbers.items(): number = assign_color_to_number(number, color).ljust(12) if number % 5 != 0: print(number, end=' ') else: print(number) print('\n') def countdown(seconds, user_number): """ Let user know how much until the next game. Arguments: seconds (int): How many seconds until next game. user_number (int): User's lucky & chosen number. """ print(f"You chose {user_number}. GOOD LUCK!\n\n") for second in range(seconds, -1, -1): sys.stdout.write( f"\r{second} seconds remaining until one number will change its color to green." ) time.sleep(1) sys.stdout.flush() print('\n') def get_user_number(): """ Sanitize user's input. """ while True: try: value = int(input('Please choose a number between 1 and 30: ')) if 30 < value < 1: print("Please insert a number between 1 and 30!\n") continue return value except ValueError: print("Please insert a number between 1 and 30!\n") continue def play(): print_table(NUMBERS) user_number = get_user_number() countdown(5, user_number) random_number = random.randint(1, 30) if user_number != random_number: NUMBERS.update({random_number: 'green', user_number: 'blue'}) print_table(NUMBERS) print( f'You did not guess the number. Our number was: {random_number} ' f'and yours was: {user_number}.\n\nGOOD LUCK NEXT TIME' ) else: print( 'You guessed it! Congrats! Please fill in the information ' 'below in order to receive your prize.\n\n' ) name = input('Your name: ') age = input('Your age: ') email = input('Your email: ') print(f'Name: {name}\nAge: {age}\nEmail:{email}') # reset our numbers NUMBERS.update({random_number: 'red', user_number: 'red'}) def main(): print('\nWELCOME TO LOTTERY!') while True: play() answer = input('Play again? [Y]es/[N]o: ') if answer.lower() == 'n': break print('\nTHANKS FOR PLAYING!') if __name__ == '__main__': main() Aici ai si link cu codu' si poti sa ii dai un Run de test. Am pus si niste comment-uri in caz ca vrei sa intelegi ce se intampla, desi ma indoiesc. PS: Codu' e scris destul de repede but it does it job chiar daca nu e perfect organizat. Enjoy
    1 point
  3. Hackers have stolen the data of a large cosmetic surgery chain and are threatening to publish patients' before and after photos, among other details. The Hospital Group, which has a long list of celebrity endorsements, has confirmed the ransomware attack. It said it had informed the Information Commissioner of the breach. On its darknet webpage, the hacker group known as REvil said the "intimate photos of customers" were "not a completely pleasant sight". It claimed to have obtained more than 900 gigabytes of patient photographs. The Hospital Group, which is also known as the Transform Hospital Group, claims to be the UK's leading specialist weight loss and cosmetic surgery group. It has 11 clinics specialising in bariatric weight loss surgery, breast enlargements, nipple corrections and nose adjustments. The company has previously promoted itself via celebrity endorsements, although it has not done so for several years. Former Big Brother contestant Aisleyne Horgan-Wallace told Zoo magazine about her breast enhancement surgery with The Hospital Group in 2009. Atomic Kitten singer Kerry Katona, Shameless actress Tina Malone and reality TV star Joey Essex from The Only Way is Essex are also previous patients who have endorsed the clinic. 'Splattered around' The Hospital Group said in a statement: "We can confirm that our IT systems have been subject to a data security breach. None of our patients' payment card details have been compromised but at this stage, we understand that some of our patients' personal data may have been accessed." The company said it had emailed all its customers about the cyber-attack and would contact individuals who might have had more personal details compromised. It's understood that many before and after pictures will not include the patients' faces. One customer told the BBC he was worried about his pictures and data being in the hackers' hands. Simon Hails had chest reduction surgery with The Hospital Group. He said the company had not told him about the ransom. Ransomware is one of the most prolific forms of cyber-attack. It typically involves hackers gaining access to a computer network and either encrypting files or locking users out of their systems until a ransom is paid. More recently, ransomware gangs have been taking a copy of the data and threatening to release it. Law-enforcement agencies discourage victims from paying the ransom because doing so fuels the criminal enterprises. Cyber-security company Emsisoft estimates that the burgeoning form of cyber-crime has earned criminals $25bn (£18bn) in 2020. REvil, also known as Sodinokibi, is one of the most prolific ransomware groups. Its high-profile victims include currency exchange Travelex and entertainment law firm Grubman Shire Meiselas & Sacks. In September, The Hospital Group said surgery requests had increased by 25% since 2019. Its chief executive Tony Veverka told the ITV News Tonight programme at the time that Covid-19 health concerns had prompted the spike, as people tried to find ways to lose weight. Via bbc.com
    1 point
  4. Astia nici nu au intrat bine in functie si vor sa mai faca un ban la ruleta?
    1 point
  5. Am actualizat tutorialul. Daca aveti intrebari sau nelamuriri, lasati mesaj aici. PS: Flash sms nu mai functioneaza pe Vodafone sau cel putin nu mai functioneaza cu metoda stiuta de mine.
    1 point
×
×
  • Create New...