Function practice : Python tutorial 72

preview_player
Показать описание
Guys please help this channel to reach 20,000 subscribers. I'll keep uploading quality content for you.

Python is easy programming language to learn and anyone can learn it, and these tutorials are 100% free in hindi.

You can share this playlist with your brother, sisters and friends. This will surely add some values to their life.

If you follow this complete playlist of python tutorial surely you will learn everything about python programming language.

In this video we defined some functions for more practice

Рекомендации по теме
Комментарии
Автор

I am from Pakistan, got this tutorial randomly, I feel, i have improve my concept regarding function. thankyou for doing great work and helping programming students.

suhaibkhalid
Автор

def xyz(name):
return name[-1]

x=input("")
print(xyz(x))

aadarshchandra
Автор

True is bool .
Thanks for small information...

reshutirkey
Автор

def last_char():
name = input('enter your name: ')
print('your names last character is ' + str(name[-1]))

func = last_char()
print(func)

vatsalaykhobragade
Автор

Bhai ye wala mere se ho gya tha....bda mzaa aa rha h bhai... Love you ❤️ so mch bhai aapki wjh se python to bilkul easy lgne lga h .... Thanku so mch

mohitdwivedi
Автор

def last_char(x):
y = len(x)
print(x[y-1])

name = input("enter a name:-")
last_char(name)

edge
Автор

def last_index(a):
return a[-1]
name = input("enter a name : ")
print(last_index(name))

kaivalyakhairnar
Автор

def ma(a):
return a[-1]
user = input ("enter a word or anything : ")
print (ma(user))

soyeb
Автор

Why did you stop uploading your lectures? We love you so
much
We look forward to hearing from you. No one has read like you and
We pray to God Almighty to keep you happy forever

muhammadtashfain
Автор

any suggestion why i am getting 2 output?

Code:

def odd_even (num):
if num%2 == 0:
print("num is even")
print("num is odd")
user_input = int(input('Insert a num: '))
odd_even(user_input)

Output:

Insert a num: 8
num is even
num is odd

intradiary
Автор

def is_am(num)
If num℅2 ==0:
return True
else:
return False
print(is_am(num))

RootCode
Автор

def lst_str(name):
return (name[len(name)-2])
print(lst_str(input("Please enter your name ")))

informationtube
Автор

Hello Sir, i have run the same program myself before watching your code.Please let me know that, the below code's are right.

def charlast(nl):
return nl

name=input("Enter your name")
# l=len(name)
print(charlast(name[-1]))


my above code are running well.

manpreetkaur-dkmm
Автор

def name(first):
return first[-1]
user_name=input("enter your name").lower().strip()
print(f"Your name is: {user_name}")
print(f"The last character of your name is :{name(user_name)}")

anishshakya
Автор

you can write if else and return command in 1 line also
def even_odd(a):
return "Even" if a%2 == 0 else "Odd"
num = int(input('write any number: '))
print(even_odd(num))
Check this....

ShoaibManzoor
Автор

a=int(input('enter mun'))
def d(f):
return f%2==0
print('is it even', d(a))

ANANTEntercom
Автор

11:24 se 11:29 gitari ki aabj background se muje suni kyuki me JOINT pikr python sikhta hu, ish se muje hr ek baat smj me ati hai, ap loog bhi dyaan se sunna 11:24 se 11:29. ok guy see you in next videos

liveandletlive
Автор

def evenOdd(num):
if num%2 == 0 :
return "Even number"
else :
return "Odd number"

num = int(input("Enter a number : "))

print(evenOdd(num))

aashitkumarsinha
Автор

def Last_character(a):
return a[-1]
name:")))

divyeshkanzariya
Автор

num = int(input("Enter a Value: "))
def even_odd(num):
if num%2 == 0:
return"Even"
return"Odd"
print(f"Number is: {even_odd(num)}")

ghulamhaiderg
welcome to shbcf.ru