- 3
Why when l write print it does not light up,because l wrote correctly
20 odpowiedzi
+ 3
What do you mean?
+ 3
Does not light up?!
What are you trying to say?
If you are talking about coding challenges (practice feed), then their answers would be shown after when the opponent accepts it, so wait for to see the answers.
edit]: and if you are saying of code coach then show us the problem and your code, we will help wherever possible 🙄
+ 3
Святослав Михайлов light up? You mean highlight
Please ask your question clearly with clear description and use proper tags.
+ 3
Святослав Михайлов Do you want to create your own code?
In Code Section -> click on + symbol New code select language create code later you can make that code private or public hope you got it.
+ 3
You're looking for something like this?
user = input()
print("Hello",user)
+ 3
mind reading is hard.
+ 3
There really should be guidelines in asking for help. Or maybe an input form where you:
1. Specify a programming language or a general question.
2. Provide a code sample.
3. State the topic or problem.
Just popping a cryptic question and expecting an answer is really not helpful.
Sololearn members are super helpful, but we are unpaid volunteers here, and we are not mind readers.
What is happening instead is that useless topics racks up the view count and become popular while helpful and well presented topics which are answered immediately gets less views and get pushed down to obscurity.
Which is too bad because those topics more helpful to those trying to learn.
Here is a good link:
https://www.sololearn.com/Discuss/1316935/?ref=app
+ 2
Святослав Михайлов
What do you mean by light up?!
Where did you run that code?
+ 2
What is it that you want to "light up"? What is the 'it' you are referring to? The print function?
If so, it does not 'light up', but is highlighted with a different colour. Are you able to see the output?
+ 2
Святослав Михайлов Printing something doesn't 'highlight' it. It's just plain white without the white highlight emanating from its boundaries.
+ 1
Святослав Михайлов
In code coach??
Or I think you don't know how to insert input in sololearn.
+ 1
not in the trainer code, I wanted to create the code and not to practice the code simulator
+ 1
Святослав Михайлов
Sorry i am unable to understand what are you trying to say, but you can attach the code here (might your code has some errors).🙂
No i am not a sololearn employee!!😳
+ 1
print("Hello user")
+ 1
Святослав Михайлов
If that is your code, then its right,
Its giving output as:- Hello user
0
I wanted to create a code, but why does it work for everyone and not for me, maybe I have a mistake or am I a noob !?
0
are you a sololearn employee?
0
but it didn't light up
0
It seems that I understand what Святослав Михайлов talks about.
Sololearn, Code Playground, Python: `print` is not highlighted in `print("Hello user")`. I have wondered about the same some time ago.
Answer:
There is nothing wrong with you or your code. You may see that it is a built-in function and most other built-in functions are highlighted in purple. `print` is indeed highlighted (in another colour) in IDLE, the official IDE for Python, but not in there.
What I have found is that if you write `print(...` here, it does not get highlighted, but instead, when you write `print ...` or `print (...`, it does get highlighted.
My hypothesis:
I think, it is because Sololearn's Python Code Playground was originally created for Python 2. It now only supports Python 3.
In Python 2, you print "Hello user" like this: `print "Hello user"`. In Python 3, you do the same with `print("Hello user")`, but not how it was in Python 2. Sololearn has not changed the highlighting system when going to Python 3.
[see 2nd answer]
0
[extension of the first answer]
P.S.:
if you feel like writing `print ("Hello user")`, then you can do it. It is valid, as well as inserting spaces before and/or after any parenthesis there.
A little bit of my experience: I used to write it like that (one space before the opening parenthesis) for several months.
P.S. 2:
If I recall correctly, this problem exists in the app for one operating system but not for another one. If it is true then it is a supplementary cause of misunderstanding here.
P.S. 3:
Better give information about what language it is; if the question is about a code: your program, where you have written it (Code Playground, Code Coach, Practice, question of Lesson, PvP coding Challenge, outside of Sololearn). If you do not specify it, we cannot know those details, and they are important. While some of them not specified can give misleading answers to a virtually different question, others (like giving/[linking to] a code) not done may lead to the question not being ever answered.