Differences

This shows you the differences between two versions of the page.

programiranje:python_challenge:nivo_3 [2009/11/23 09:05] (current)
delboy created
Line 1: Line 1:
 +===== Python Challenge - Nivo 3 =====
 +U [[http://www.pythonchallenge.com/pc/def/equality.html|ovom nivou]] tekst ispod kaže da treba tražiti jedno malo slovo okruženo sa tačno 3 velika telohranitelja sa strane. Text u kome to tražimo se ponovo nalazi u source-u stranijce. Ponovo je taj tekst sačuvan u poseban fajl: //text_3.txt//.
 +<code python>
 +#!/usr/bin/env python
 +
 +import re
 +
 +f = open("text_3.txt", "r")
 +text = f.read()
 +
 +print ''.join(re.findall("[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]", text))
 +</code>
 +
 +Kada se dobijeni rezultat unese u adresu dobije se stranica na kojoj piše da je potrebno zameniti //.html// sa //.php//, što je i konačno rešenje.
 +
 +**Rešenje**: http://www.pythonchallenge.com/pc/def/linkedlist.php
 
programiranje/python_challenge/nivo_3.txt · Last modified: 2009/11/23 09:05 by delboy
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki