can i use print("hello world") instead of print_text() ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can i use print("hello world") instead of print_text() ?

should i define print_text() function to insert to decor function?

15th Jul 2016, 7:15 PM
Youngsun Kim
Youngsun Kim - avatar
3 Answers
0
print ("hello world") print ("hello world") print ("привет Человек")
15th Jul 2016, 7:50 PM
Denis Astro
Denis Astro - avatar
0
c++: #include <iostream> int Main () { cout << "Hello World"; } java: public static void main (String [] args) { System.out.print ("Hello World"); } Python: print ("Hello World"); c++ & java: Python why you do dis.
15th Jul 2016, 8:36 PM
Dunura Dulshan
Dunura Dulshan - avatar
0
c++ is a little more like this: #include <iostream> using namespace std; int main() { cout << "Hello World"; return 0; }
16th Jul 2016, 12:37 PM
Samuel Neo
Samuel Neo - avatar