“Beberapa fungsi dalam python dengan metode input” Kode Jawaban

masukkan beberapa nilai dalam python

mA,mB = map(float,input().split()) #if float data type
mA,mB = map(int,input().split()) #if int data type
Rajanit Navapara

Cara mengambil beberapa input python

n=input()# no of inputs
n =int(n)
for i in range(n):
  y=input()
  print(y)
Hami yestia ta honi bro

Beberapa fungsi dalam python dengan metode input

#Function in python

def identity(age):
    print("You are "+str(age)+" Years old")
identity(input("Type your age: "))

def id(name):
    print("Hello "+name+"."+"You are our valued customer")
    print("Have a nice Day "+name)
id(input("Type your name: "))

# if you want to use the input method to get the user info more
# than one time then you should make two function.
# In one function you can't get the multiple results.if anyone can find
# please add to greeper ans.
YEASIN ARAFAT

Jawaban yang mirip dengan “Beberapa fungsi dalam python dengan metode input”

Pertanyaan yang mirip dengan “Beberapa fungsi dalam python dengan metode input”

Lebih banyak jawaban terkait untuk “Beberapa fungsi dalam python dengan metode input” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya