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
9/22/2017 2:07:15 PM
Captain Spartan18 Answers
New Answerto make a function work u need to call it.. see my code again.. in your code there a unused function standing
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
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
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
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message