Interactive Programming Forums
Login
Register
Home
Questions/Snippets/Exercises
Unanswered
Tags
Ask a Question
Post a Code Snippet
Post an Exercise
Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.
All categories
Ruby
(3)
Python
(10)
PHP
(7)
Perl
(2)
SQL
(8)
Javascript
(6)
HTML
(20)
CSS
(4)
jQuery
(0)
XML
(3)
Code Snippets
(1)
Exercises
(4)
Other
(9)
Python Code Error
+4
votes
Copy paste from lesson but code does not work???
url = "
http://ipv6.he.net
"
if search (r' (http://)?([a-z|0-9]') ?he\.net', url):
print "Pattern matched!"
HELP!
python-programming-code
error
posted
12 years
ago
in
Python
by
Manuel Pacheco
(
1,280
points)
1 Answer
0
votes
Hi,
If statement requires an indentation as below:
url = "
http://ipv6.he.net
"
if search (r' (http://)?([a-z|0-9]') ?he\.net', url):
print "Pattern matched!"
Please retest.
answered
12 years
ago
by
codeadmin
(
113,880
points)
Related questions
–2
votes
2
answers
Python courses ain't working
posted
12 years
ago
in
Python
by
joonas.hasanen
(
660
points)
error
+7
votes
1
answer
error in sql exercise Chapter IV - CREATE TABLE 'Employees';
posted
12 years
ago
in
SQL
by
SUNRISER
(
2,050
points)
sql
error
programming-code
0
votes
1
answer
Warning: array_combine() expects parameter 1 to be array, null given - = - and other error: Undefined variable: mixed
posted
12 years
ago
in
PHP
by
SUNRISER
(
2,050
points)
php
programming-code
error
–1
vote
1
answer
error in sql exercise Chapter IV - DESCRIBE Employees;
posted
12 years
ago
in
SQL
by
SUNRISER
(
2,050
points)
sql
programming-code
error
+1
vote
1
answer
where to try python on ur amazing site?
posted
12 years
ago
in
Python
by
dr.emad.adnan
(
570
points)
programming-code