Skip to main content

Posts

Showing posts from August, 2015

Pylove

For the PyLovers , here we bring more coding examples. Written and tested by us, today we have 5 of the codes from basic to moderate that would help you get more attract towards #Python. Here are some codes that we have been practicing. Hope you try them too!!! Don't just copy+paste, edit too and see what changes can be done :) 1. Stringers: In this code, we have created a function that will take any string as a input and perform various string operations using the inbuilt string function as follows: 1. length of string using len 2. First occurrence of a char in string using  .index 3. Counting the number of times the char as appeared using .count 4. Convert string to upper and lower case using .upper and .lower respectively 5. Checking if the string starts and ends with a particular letter using .startswith and .endswith  6. Splitting the string using .split and storing it in a list. THE CODE: def stringers():     s=input('Enter string')  

< Something new!! >

Observe the title of this post and copy the below next in notepad and save as --> Page.html in all files format And then open it in a browser :) That's the new thing we are going to learn. <!DOCTYPE html> <html> <head> <title> Let's Learn HTML Together </title> </head> <body> <h1> This is start to basic HTML Guide </h1> <p> HTML is the need for today's IT aspirants, get it done easily through PapSolutions :)  </p> </body> </html>