0
The message of print
does not appear on the screen, does it have to do with the variable?
cp = str
input("seu nome")
if(cp)=='jefferson': print('JFP')
0
The message of print
does not appear on the screen, does it have to do with the variable?
cp = str
input("seu nome")
if(cp)=='jefferson': print('JFP')
5
It’s simpler than this.
if input("seu nome") == "jefferson": print("JFP")
Behold working in the ideone. And in the repl it.. Also put on the Github for future reference.
Do you have a reason to create a variable? If you don’t have it, don’t create it. Actually, don’t put anything in the code if you can’t justify it.
I imagine you wanted to convert what you typed into string. But why, if what was typed is already a string? And it’s incomplete syntax in separate lines. I suggest to better understand how the basic syntax of things works, what the function of each part of the code is, because it is using each character. Without understanding these things you can never program with dexterity.
Vish man, sorry for ignorance, I was studying, I was stopped forgot everything, thanks, I thought it would work this way q posted
No need to talk to the boy like that, if he is layman or novice, does not justify his attitude, please edit your response to a more sensible way.
@Renanosorio do you want him to never learn? I’m sorry, but I don’t think like you do. I’m here to help people evolve. His attitude makes people stay the same. I’m not bad treating anyone, I’m guiding what to do to improve. And I like doing this, and people who follow orienteering end up becoming professionals. People who don’t like it end up not going forward. I regret that you prefer it this way.
Today most people don’t even understand what they need to evolve, and the blame for that is having a lot of people reach over and say that it’s all right without you. Again, I’m sorry if you don’t like it, but the answer is nothing wrong, it’s not wrong and it doesn’t deserve negative because you didn’t like the text. You are doing more harm than you are complaining because the vote is not to evaluate the answer but reprisal because you did not like the text. That’s not cool. And stranger still see 2 votes like that. I’ll call another mod to analyze what’s going on here
i don’t think @Maniero’s response was offensive in this case - it can be called hard and direct, but it is well within the limits of cordiality (with the use of the verb 'suggest' and etc...). And these are real points that some of the beginners around here might think are secondary, when they’re not.
@jsbueno yes, I am hard and direct, I know some don’t like it, but I prefer it that way, and I think I do more good than bad. Not wanting to compare myself to Steve Jobs (I’m much better :D zuei) "My job is not to take it easy on people. My job is to make them better". It’s never been more accurate to show that people need to go their separate ways. The proportion of those who are walking tortuous paths is very large. Disagree, press always, never offend. Thank you.
I just don’t like it when you close some generic questions that I would be able to contextualize and answer! :-)
@jsbueno edits it to save ;)
Browser other questions tagged python python-3.x
You are not signed in. Login or sign up in order to post.
That code makes no sense, what you want to do?
– Maniero
answer solved your question? Do you think you can accept it? See [tour] if you don’t know how to do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero