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 random | |
| # Set up the deck | |
| suits = ['kier', 'karo', 'trefl', 'pik'] | |
| ranks = ['dwa', 'trzy', 'cztery', 'pięć', 'sześć', 'siedem', 'osiem', 'dziewięć', 'dziesięć', 'walet', 'dama', 'król', | |
| 'as'] | |
| values = {'dwa': 2, 'trzy': 3, 'cztery': 4, 'pięć': 5, 'sześć': 6, 'siedem': 7, 'osiem': 8, 'dziewięć': 9, | |
| 'dziesięć': 10, | |
| 'walet': 10, 'dama': 10, 'król': 10, 'as': 11} | 
  
    
      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
    
  
  
    
  | package kontruktory_05; | |
| public class MainBooks { | |
| public static void main(String[] args) { | |
| User user = new User(1, "Jan", "Kowalski"); | |
| Author author = new Author(1,"Henryk", "Sienkiewicz", "Henio"); | |
| Book book = new Book(1,"W pustyni i w puszczy", author); | |
| Author author2 = new Author(2,"Witold", "Gombrowicz", "Witek"); | 
  
    
      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
    
  
  
    
  | package pierwszytest; | |
| import org.junit.After; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.firefox.FirefoxDriver; | 
  
    
      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
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.coderslab.selenium</groupId> | |
| <artifactId>testowyprojekt</artifactId> | |
| <version>1.0-SNAPSHOT</version> | 
  
    
      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
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.kurs.selenium</groupId> | |
| <artifactId>SeleniumStart</artifactId> | |
| <version>1.0-SNAPSHOT</version> | 
  
    
      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
    
  
  
    
  | # 4D10+10: 2 rzuty D10, do wyniku dodaj 10, | |
| # D6: zwykły rzut kostką sześcienną, | |
| # 2D3: rzut dwiema kostkami trójściennymi, | |
| # D12-1: rzut kością D12, od wyniku odejmij 1. | |
| import random | |
| def rzucaj(n): | |
| typy = [3,4,6,8,10,12,20,100] | |
| #D3, D4, D6, D8, D10, D12, D20, D100 | 
  
    
      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
    
  
  
    
  | from flask import Flask, request | |
| app = Flask(__name__) | |
| min = 0 | |
| max = 1000 | |
| formularz = f""" | |
| <form action="/" method="POST"> | |
| <button type="submit" name="submit_button" value="1">ZA MAŁO</button> | 
  
    
      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
    
  
  
    
  | odpowiedz = """ | |
| 1. Za dużo | |
| 2. Za mało | |
| 3. Zgadłeś | |
| """ | |
| print ("Pomyśl liczbę od 0 do 1000 a ja ją zgadnę w max 10 próbach") | |
| min = 0 | |
| max = 1000 | 
  
    
      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 random | |
| moje_lotto = [] | |
| kulki = [x for x in range(1,50)] | |
| random.shuffle(kulki) | |
| wynik_losowania = kulki[0:6] | |
| wynik_losowania.sort() | |
| def wprowadz_liczbe(): | |
| liczba = input("Wprowadz liczbe: ") | 
  
    
      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
    
  
  
    
  | from flask import Flask | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def hello(): | |
| return "Witaj użytkowniku!" | 
NewerOlder