+ 7

How print "Hi"

6th Jun 2018, 7:55 AM
sandy
18 Réponses
+ 12
It's very simple sandy : print ('Hi') //Hi print ("\"Hi\"") //"Hi" https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2270/
6th Jun 2018, 7:58 AM
***
+ 10
print ("Hi")
6th Jun 2018, 12:23 PM
💞ⓢⓦⓐⓣⓘ💞
💞ⓢⓦⓐⓣⓘ💞 - avatar
+ 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.
6th Jun 2018, 4:30 PM
Seb TheS
Seb TheS - avatar
+ 6
in python3 you can : print("Hi") //this will print Hi print(' "Hi" ') //print "Hi"
6th Jun 2018, 4:22 PM
dyeed
+ 4
echo -e "print(\"Hi\")" > hi.py && python hi.py
6th Jun 2018, 4:39 PM
non
+ 3
SL has a search feature, too.
6th Jun 2018, 6:56 PM
non
+ 2
i am into C++.......
6th Jun 2018, 2:33 PM
BLESSING ISIOYE
+ 2
just write print("Hi") after you get Hi
6th Jun 2018, 6:10 PM
Hrithik Joad
Hrithik Joad - avatar
+ 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.
7th Jun 2018, 5:15 PM
Salman
Salman - avatar
+ 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.
7th Jun 2018, 6:03 PM
Seb TheS
Seb TheS - avatar
0
sandy It's very easy: public class Program { public static void main(String[] args) { System.out.println("Hi"); } }
6th Jun 2018, 2:25 PM
Andre Daniel
Andre Daniel - avatar
0
print('hi')
7th Jun 2018, 1:25 AM
Ali Z
Ali Z - avatar
0
by doing this print("hi")
7th Jun 2018, 10:57 AM
Sonia Singh
Sonia Singh - avatar
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.
7th Jun 2018, 3:04 PM
Seb TheS
Seb TheS - avatar
- 1
Great job
7th Jun 2018, 2:14 AM
Issam Drmas
Issam Drmas - avatar
- 2
🤤🤤😬😬
7th Jun 2018, 1:24 AM
Ali Z
Ali Z - avatar
- 3
use google, are you guys always going to post every question that comes to mind before referencing google.....................................USE GOOGLE FIRST!!..........thank you
6th Jun 2018, 6:49 PM
developer_genius
developer_genius - avatar