Forwarded from Future Data Science(FDS)
Our Domain is Live. This is sample screenshot that shows it is working. Check it mefitihe.et
Together we create a big and known learning platform in future.β
#FindLongestWordLengthChallenge
Coding challenge - Return the length of the longest word in the provided sentence.
Your response should be a number.
e.g
findLongestWordLength("The quick brown fox jumped over the lazy dog") should return 6.
Coding challenge - Return the length of the longest word in the provided sentence.
Your response should be a number.
e.g
findLongestWordLength("The quick brown fox jumped over the lazy dog") should return 6.
Forwarded from Future Data Science(FDS)
#FindLongestWordLengthChallenge
Solution by @Abcdefghijklmnopqrstuvwxyz784629
def findLongestWordLength(name):
lis = name.split();
l = len(lis[0])
for i in lis:
if len(i) > l:
l = len(i)
return l;
print(findLongestWordLength("The quick brown fox jumped over the lazy dog"))
Solution by @Abcdefghijklmnopqrstuvwxyz784629
def findLongestWordLength(name):
lis = name.split();
l = len(lis[0])
for i in lis:
if len(i) > l:
l = len(i)
return l;
print(findLongestWordLength("The quick brown fox jumped over the lazy dog"))
Forwarded from Future Data Science(FDS)
#StringReverseChallenge
find the reverse of the given string
eg. "I love Python" then the reverse is "nohtyp evol i"
N.B: don't use any built in reverse function available.
find the reverse of the given string
eg. "I love Python" then the reverse is "nohtyp evol i"
N.B: don't use any built in reverse function available.
Forwarded from Future Data Science(FDS)
#Tips
How to search hashtag?
1. Find search button from the action bar
2. Click on the search Icon π
3. Type # symbol
4. Then all hashtag elements will display below then you can scroll down and find the hashtag the word you want to find out
How to search hashtag?
1. Find search button from the action bar
2. Click on the search Icon π
3. Type # symbol
4. Then all hashtag elements will display below then you can scroll down and find the hashtag the word you want to find out
β
12 Reasons Why You should learn Python in 2019
β°15 Minutes Reading
Share if you like it
https://telegra.ph/12-Reasons-you-should-learn-Python-11-25
β°15 Minutes Reading
Share if you like it
https://telegra.ph/12-Reasons-you-should-learn-Python-11-25
Telegraph
12 Reasons you should learn Python
12 Reasons Why You Should Learn Python in 2019 15 Minutes Reading Python is an object-oriented and open-source language developed in the 1980s by Dutchman Guido van Rossum. Tech Giants like Cisco, IBM, Mozilla, Google, Quora, Hewlett-Packard, Dropbox, andβ¦
Forwarded from Deleted Account
def reverser(str):
reversed = ""
for i in range(len(str) - 1 , -1 , -1):
reversed += str[i]
return reversed
print(reverser("i love python"))
reversed = ""
for i in range(len(str) - 1 , -1 , -1):
reversed += str[i]
return reversed
print(reverser("i love python"))
Forwarded from Tensu Creative (Asibeh Tenager)
β
You can't make the same mistake twice. The second time you make it, it's no longer a mistake, it's a choice.
#PyschologicalFact
#PyschologicalFact
#NumberChallenge
How to put 1000000000 number like 1, 000,000,00.00?
Post your solution in the comment
How to put 1000000000 number like 1, 000,000,00.00?
Post your solution in the comment
Forwarded from Future Data Science(FDS)
5 Reasons Why Programmers Should Think like Hackers:
1. Incomparable tenacity
2. Doing instead of reading and traditional learning
3. Anticipating potential security breaches
4. Creative thinking and willingness to break out of the mold
5. Having fun!
https://thehackernews.com/2019/12/cybersecurity-for-programmers.html
1. Incomparable tenacity
2. Doing instead of reading and traditional learning
3. Anticipating potential security breaches
4. Creative thinking and willingness to break out of the mold
5. Having fun!
https://thehackernews.com/2019/12/cybersecurity-for-programmers.html
Python Tips and Trick, You Haven't Already Seen
part1 : https://martinheinz.dev/blog/4
part2 : https://dev.to/martinheinz/python-tips-and-trick-you-haven-t-already-seen-1p41
habr: https://habr.com/ru/company/ruvds/blog/485646/
part1 : https://martinheinz.dev/blog/4
part2 : https://dev.to/martinheinz/python-tips-and-trick-you-haven-t-already-seen-1p41
habr: https://habr.com/ru/company/ruvds/blog/485646/
martinheinz.dev
Python Tips and Trick, You Haven't Already Seen, Part 2.
Few weeks ago I posted an article (<a href="https://dev.to/martinheinz/python-tips-and-trick-you-haven-t-already-seen-1p41">here</a>) about some not so com...
What is the correct syntax to output the type of a variable or object in Python?
Final Results
4%
print(typeOf(x))
9%
print(typeof x)
26%
print(typeof(x))
61%
print(type(x))
β
TIP
Indentation is important for python programming you never miss it.
Indentation refers to the spaces at the beginning of a code line.
Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important.
Python uses indentation to indicate a block of code.
Example:
for x in range (2, 5):
print x
N.B: Python will give you an error if you skip the indentation:
EXAMPLE:
for x in 5:
print x
Indentation is important for python programming you never miss it.
Indentation refers to the spaces at the beginning of a code line.
Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important.
Python uses indentation to indicate a block of code.
Example:
for x in range (2, 5):
print x
N.B: Python will give you an error if you skip the indentation:
EXAMPLE:
for x in 5:
print x
Epython Lab via @vote
1. Complete the code to return the following output p = [βaβ, βbβ, βcβ, βcβ, βdβ, βdβ] _?__ (p[3:5]) print (p) Output: [βaβ, βbβ, ;cβ, βdβ]
public poll
remove β 7
πππππππ 78%
Bina, @contramot, Jay, @sal_270, Emil, @Asgardia360, @RaviVarma_T
rm β 1
π 11%
Pallab
del β 1
π 11%
@asibehtenager
π₯ 9 people voted so far.
public poll
remove β 7
πππππππ 78%
Bina, @contramot, Jay, @sal_270, Emil, @Asgardia360, @RaviVarma_T
rm β 1
π 11%
Pallab
del β 1
π 11%
@asibehtenager
π₯ 9 people voted so far.
β
Python | type() function
type() method returns class type of the argument(object) passed as parameter. type() function is mostly used for debugging purposes.
Two different types of arguments can be passed to type() function, single and three argument. If single argument type(obj) is passed, it returns the type of given object. If three arguments type(name, bases, dict) is passed, it returns a new type object.
Syntax : type(object)
Therefor the answer of the above question is print(type(x))
Any doubt ask
Join group discussion:
https://t.me/joinchat/H8JEqEojXCb0mUfnlAqbVA
type() method returns class type of the argument(object) passed as parameter. type() function is mostly used for debugging purposes.
Two different types of arguments can be passed to type() function, single and three argument. If single argument type(obj) is passed, it returns the type of given object. If three arguments type(name, bases, dict) is passed, it returns a new type object.
Syntax : type(object)
Therefor the answer of the above question is print(type(x))
Any doubt ask
Join group discussion:
https://t.me/joinchat/H8JEqEojXCb0mUfnlAqbVA