Input output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Input output

I need a Python program that uses a function to get input and print out hello with the input and if there is no input it says hello there

22nd Sep 2017, 2:07 PM
Captain Spartan
Captain Spartan - avatar
18 Answers
22nd Sep 2017, 2:11 PM
sayan chandra
sayan chandra - avatar
+ 4
https://code.sololearn.com/c8sze9UN0PIB/?ref=app
22nd Sep 2017, 2:17 PM
Captain Spartan
Captain Spartan - avatar
+ 3
thanks
22nd Sep 2017, 2:50 PM
Captain Spartan
Captain Spartan - avatar
+ 3
GM all of you
2nd Oct 2019, 4:53 AM
gaurav bhardwaj
gaurav bhardwaj - avatar
+ 3
General Kenobi!
18th Nov 2020, 10:40 PM
Wesley Yiu
Wesley Yiu - avatar
+ 2
is the function to this correct I have edited your code with mine
22nd Sep 2017, 2:19 PM
Captain Spartan
Captain Spartan - avatar
+ 2
Hii
2nd Oct 2019, 4:52 AM
gaurav bhardwaj
gaurav bhardwaj - avatar
+ 2
Input
9th Dec 2019, 2:50 PM
Majid Sanam
Majid Sanam - avatar
+ 1
to make a function work u need to call it.. see my code again.. in your code there a unused function standing
22nd Sep 2017, 2:20 PM
sayan chandra
sayan chandra - avatar
+ 1
Hiii
2nd Apr 2021, 6:16 AM
Banti Roy
Banti Roy - avatar
0
I want to start my career with coding basic , I want to become a game and app developer in future , so which language will be my first basic language and I also want some basic coding course
5th Jan 2021, 8:13 AM
Krrish nik
Krrish nik - avatar
0
print('Type in your name'); def say_hello(name): print(name) name = input("") if name ==(""): print("hello there") else: print('hello ' + name + "!") https://code.sololearn.com/Wpb8j4aBEmVw/?ref=app
8th Feb 2021, 3:01 PM
Ned OConnor
Ned OConnor - avatar
25th Feb 2021, 2:39 AM
Arunpandi
0
Answer is. 2
9th Jul 2021, 9:43 AM
Vatti Sahendra Reddy
Vatti Sahendra Reddy - avatar
0
printf: Pas de retour à la ligne automatique Ex: printf("Bonjour"); printf("Salut"); Output: BonjourSalut scanf: Retour à la ligne automatique Ex: int a; scanf("%d", &a); //supposons que la valeur entrer est 5 printf("%d", a); Output: //valeur entrer: 5 5
20th Dec 2021, 1:44 PM
Larryson Joel Rakotonarivo
Larryson Joel Rakotonarivo - avatar
- 1
/* hallo */
19th Oct 2020, 4:09 PM
kakaroto
kakaroto - avatar
- 1
Hello, why does Google service say that it is not available when we want to output?
12th Feb 2021, 8:42 AM
Mahdi Pour
Mahdi Pour - avatar
- 3
kovkjdñjdñdlkjdljdldlkjfjf
18th Nov 2020, 11:10 AM
Jan Caparros
Jan Caparros - avatar