Coder Social home page Coder Social logo

Function to join string about sci-corpus HOT 9 CLOSED

zericardo avatar zericardo commented on July 21, 2024
Function to join string

from sci-corpus.

Comments (9)

zericardo avatar zericardo commented on July 21, 2024

Ok.

from sci-corpus.

zericardo avatar zericardo commented on July 21, 2024

What happens if n != len(str3)?
Should I return only the sentence (and data section subsection...) related with index n on str3?

from sci-corpus.

zericardo avatar zericardo commented on July 21, 2024

In which file this function needs to be?

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

If n!= len(str3) the function should raise an error!

The function have to be coded in container.py

from sci-corpus.

zericardo avatar zericardo commented on July 21, 2024

But what is the difference in the example in the if n=1 or n!=1 (the last two ifs in the example code you wrote)?

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

This is what we talk about early today!

You have to make a function that receives a string a connector and a list of attributs! This are the minimum pre-requisits.

You have to repeat the string with the connector and substitute the attribute in the write place. How you gonna make it? I dont know, is up to you.

If I pass only on attribute, ofcourse you dont have to connect the string. If I pass more than one attribut you should connect the string.

Its is clear?

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 21, 2024

write place = right place

from sci-corpus.

zericardo avatar zericardo commented on July 21, 2024

Ok, now I got it.

from sci-corpus.

zericardo avatar zericardo commented on July 21, 2024

Done!

from sci-corpus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.