+ 7
How print "Hi"
17 ответов
+ 12
It's very simple sandy :
print ('Hi') //Hi
print ("\"Hi\"") //"Hi"
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2270/
+ 10
print ("Hi")
+ 8
It seems like you don't know how to learn in SoloLearn, so I give you guide step by step:
1. Go to the home screen where you can see 🎓, ⚡, 🏠, { } and 🗨️.
2. Go to the learn section 🎓,
3. Find "Choose a Topic",
4. Find an interesting programming language from "Choose a Topic", I suggest to choose Python 3 Tutorial, many programmers starts with Python.
5. Open the programming language.
6. Press the first part of the course.
7. Open the first lesson of the part.
8. Finish the first lesson.
9. The output/printing text should be explained on the second lesson of first parts of courses of many programming language in SoloLearn.
+ 6
in python3 you can :
print("Hi") //this will print Hi
print(' "Hi" ') //print "Hi"
+ 4
echo -e "print(\"Hi\")" > hi.py && python hi.py
+ 3
SL has a search feature, too.
+ 2
i am into C++.......
+ 2
just write print("Hi")
after you get Hi
+ 2
Seb TheS TRY ANY OF THESE :-
Normal(left) = print("Hi")
Centered(Top) = print(" "*35 +"Hi")
Right = print(" "*50 +"Hi")
Center = print("\n"*10 + " "*35 +"Hi")
ASCII = print(str(ord("H"))+str(ord("I")))
Binary = print(str(bin(ord("H")))+str(bin(ord("I"))))
N times = print(" Hi "*100)
In double quotes =
step1 = print('"Hi"')
step2 = print("\"Hi\"")
or vice versa in single quotes.
+ 2
SHAIKH SALMAN I would rather use:
print(input())
#To print any text on left side of screen.
Put = input()
print((52 - len(Put)) * " " + Put)
#To print any text on right side of screen.
Put = input()
print((52 - len(Put) // 2) * " " + Put)
#To print any text in the middle of screen.
but if you want to assign text only once you want to print, little better sample for that, doesn't work in SoloLearn compiler:
try:
NIL = int(input("Characters fit in an output line: "))
except ValueError:
NIL = 52
try:
O = open("/storage/emulated/0/testfile1.txt", "r")
R = O.read()
except FileNotFoundError:
O = open("/storage/emulated/0/testfile1.txt", "w")
O.write(input())
O.close()
O = open("/storage/emulated/0/testfile1.txt", "r")
R = O.read()
finally:
O.close()
print(R)#print text to left side.
print((NIL - len(R)) * " " + R)#print text to right side.
print((NIL - len(R)) // 2 * " " + R)#print text in middle.
0
sandy
It's very easy:
public class Program
{
public static void main(String[] args)
{
System.out.println("Hi");
}
}
0
print('hi')
0
by doing this
print("hi")
0
developer_genius SoloLearn Q&A Discussion is a good place for asking guestions, there are no stupid guestions even though the guestion of How to print "Hi" might sound stupid, maybe sandy didn't just get it.
Anyways guestions put on SoloLearn Q&A Discussion should be sensible, you don't ask the price of cheese in SoloLearn Discussion.
- 1
Great job
- 2
🤤🤤😬😬
- 3
use google, are you guys always going to post every question that comes to mind before referencing google.....................................USE GOOGLE FIRST!!..........thank you