Suljettu

python programming

We have defined our own markup language HRML. In HRML, each element consists of a starting and ending tag, and there are attributes associated with each tag. Only starting tags can have attributes. We can call an attribute by referencing the tag, followed by a tilde, '~' and the name of the attribute. The tags may also be nested.

The opening tags follow the format:

<tag-name attribute1-name = "value1" attribute2-name = "value2" ... >

The closing tags follow the format:

< /tag-name >

For example:

<tag1 value = "HelloWorld">

<tag2 name = "Name1">

</tag2>

</tag1>

The attributes are referenced as:

tag1~value

[url removed, login to view]~name

You are given the source code in HRML format consisting of N lines. You have to answer Q queries. Each query asks you to print the value of the attribute specified. Print "Not Found!" if there isn't any such attribute.

Input Format

The first line consists of two space separated integers, N and Q. N specifies the number of lines in the HRML source program. Q specifies the number of queries.

The following N lines consist of either an opening tag with zero or more attributes or a closing tag.

Q queries follow. Each query consists of string that references an attribute in the source program.

Constraints:

1 ≤ N ≤ 20

1 ≤ Q ≤ 20

Each line in the source program contains, at max, 200 characters.

Every reference to the attributes in the Q queries contains at max 200 characters.

All tag names are unique.

Output Format

Print the value of the attribute for each query. Print "Not Found!" without quotes if there is no such attribute in the source program.

Sample Input:

4 3

<tag1 value = "HelloWorld">

<tag2 name = "Name1">

</tag2>

</tag1>

[url removed, login to view]~name

tag1~name

tag1~value

Sample Output:

Name1

Not Found!

HelloWorld

Taidot: HTML, Python, XML

Näytä lisää: programming python openerp, openerp programming python, programming python raspberry, python tutorial, python programming tutorial, python software, what is python, what is python used for, python programming pdf, python programming examples, python codecademy, python, bioinformatics programming python, linux kernel programming python, front end programming python, object oriented programming python basics, programming python agi asterisk, introduction computing programming python rapidshare, freelance programming python php web, dreambox programming python

Tietoa työnantajasta:
( 0 arvostelua ) fremont, United States

Projektin tunnus: #14482717

22 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

schoudhary1553

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of ex Lisää

$100 USD 2 päivässä
(8 arvostelua)
5.2
Webln

Hello! my name is Viktor. We are IT Company «Webin». We provide website design and web and app development services for organizations, public and government institutions, company or private web-pages. We got acquainte Lisää

$34 USD 2 päivässä
(9 arvostelua)
5.2
anupkelkar02

I am expert in python for Web scraping , API integration , Odoo ERP customization and lexical analysis. Relevant Skills and Experience Also a good hand in web application designing using django and flask. I am a Oracl Lisää

$25 USD 1 päivässä
(29 arvostelua)
5.6
techashu91

I have gone through your requirements in the job posting.I can do this work exactly as you wanted and have all the potential to provide you quality as well as the quick work for which you looking for. Relevant Skills Lisää

$111 USD 5 päivässä
(14 arvostelua)
4.9
algispetkuns

can do it in next 3 hours Relevant Skills and Experience - python - text processing Proposed Milestones $40 USD - complete program

$40 USD 1 päivässä
(20 arvostelua)
4.7
snippetbucket

Python Expert with you, Have been done Python APPs & integrations. Python kivy is most wounderful and populer in the world, so we suggest it, Also we use other application too. Relevant Skills and Experience Python K Lisää

$50 USD 3 päivässä
(16 arvostelua)
4.4
$26 USD 1 päivässä
(11 arvostelua)
3.8
abhi742

A proposal has not yet been provided

$25 USD 0 päivässä
(13 arvostelua)
3.7
pkbsdmp

I am a python developer having 6 + experience in IT industry. Relevant Skills and Experience I am expert in: Python XML Parsing, JSON Parsing, web services and Regular Expressions Proposed Milestones $25 USD - NA

$25 USD 1 päivässä
(16 arvostelua)
3.8
brunogarcianet

I use Python in University, where I study and work. What you need is very simple, and it can be done in a few hours from now. If you hire me now I will do it at this moment, otherwise you will have to wait for me to Lisää

$10 USD 1 päivässä
(4 arvostelua)
3.4
$111 USD 1 päivässä
(1 arvostelu)
3.1
wbremer

The bid is for the project as described in the project posting. Relevant Skills and Experience 20 years SW Engineering / Development experience in various languages. Proposed Milestones $30 USD - Delivery of the fina Lisää

$30 USD 2 päivässä
(1 arvostelu)
2.7
Ahsannazir1

Dear sir/madam I am an undergraduate in computer science having 3 years of experience. My expertise are specially in c,c++,c#, JAVA, Python and android. I can help you with your project and will deliver you quality wor Lisää

$20 USD 3 päivässä
(2 arvostelua)
2.4
hindmostone

Writing parsers is what I do. I wrote many interpreters (during freelance), almost each of them had parser. One of them even was a Lua parser written in Python. Relevant Skills and Experience 1) Parsing; 2) Python Lisää

$55 USD 4 päivässä
(1 arvostelu)
2.0
$55 USD 1 päivässä
(1 arvostelu)
2.3
$25 USD 1 päivässä
(1 arvostelu)
0.1
ioriirobertino

Python script. Input: numer_of_lines + number_queries. Output: Queries results. If not attribute, Not Found!. Relevant Skills and Experience 7 years working in linux enviroments. Deep understanding on developing scrip Lisää

$25 USD 1 päivässä
(0 arvostelua)
0.0
vivekbsable

I always go for max bid Budget, because you are paying that. Relevant Skills and Experience I am working in Python from last 4 years, I worked in HTML+XML parsing to our Digital Publisher product which based on HTML.I Lisää

$35 USD 2 päivässä
(0 arvostelua)
0.0
marcelwindys

Dear Sir or Madam I am a beginner freelancer willing to work for smaller salary and I am interested in your job proposal. Sincerely, Marcel Windys Relevant Skills and Experience You can check my GitHub page or my code Lisää

$10 USD 2 päivässä
(0 arvostelua)
0.0
n1amr

A proposal has not yet been provided

$25 USD 2 päivässä
(0 arvostelua)
0.0