Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11
And continue :- [ PART 2 ] 6).Avg :- Write a program which Asks the user to input numbers separated by comas and return the average of all the numbers entered Input = 2,4,6,8 Output = 5 7).Mobile no generator = Write a program which ask the user to input an integer and return a mobile random number starting with that integer Input = 7 Output = 7538686294 8).Factors = write a program which ask the user to input an integer and return the factors of that number without that number Input = 6 Output = 1,2,3 Bonus = if you are successful in making the above project try this https://www.sololearn.com/learn/4646/?ref=app 9).Most duplicate number = Take a list lis = [1,7,8,5,4,6,1,2,7,8,9,1,2,1]. and write a program which prints the number which repeats itself Maximum number of times in that list Bonus = Your program must create a random list which contains 15 integers Everytime you run the program What will you do if there are more than one number which repeats itself Check for more parts in the comments...........
23rd May 2018, 6:17 PM
Salman
Salman - avatar
+ 26
Also try these codes -Neon number -Happy number -Duck number -Armstrong number -Automorphic number -Disarium number
24th May 2018, 1:10 PM
💞ⓢⓦⓐⓣⓘ💞
💞ⓢⓦⓐⓣⓘ💞 - avatar
+ 14
Welcome SHAIKH SALMAN 😃👍👌🍒
25th May 2018, 7:04 AM
💞ⓢⓦⓐⓣⓘ💞
💞ⓢⓦⓐⓣⓘ💞 - avatar
+ 10
Osamah Mohammed Al-Haddad Try this: Write a program to convert all the letters between '@' symbols to uppercase.And remove the '@'. Example: If Input:'I love @ programming.I use sololearn @ app to code.' Output:'I love PROGRAMMING.I USE SOLOLEARN app to code.
23rd May 2018, 3:54 PM
Mitali
Mitali - avatar
+ 10
Making codes using random module!! Guess the output Dice games Rock , paper and scissors Hangman.
25th May 2018, 7:02 AM
☆ ⓚⓣ☆
☆ ⓚⓣ☆ - avatar
+ 8
Flash You can do it by using index () and rindex(). index () -It will give you first index whr @ is found rindex()-last index whr @ is found. you can use for loop to iterate between this 2 index and use upper to convert it to uppercase. You know how to remove those @. You need a second string as string is immutable.
27th May 2018, 9:40 AM
Mitali
Mitali - avatar
+ 7
and also Chunky numbers Lucky numbers unlucky numbers 😬
25th May 2018, 2:40 PM
Charan Leo25
Charan Leo25 - avatar
+ 6
Sure I'll wait :)
23rd May 2018, 6:23 PM
Mitali
Mitali - avatar
+ 6
Flash I have broke the code into small steps for better understanding and have also added comments. https://code.sololearn.com/cED7F18eGKT1/?ref=app
27th May 2018, 1:08 PM
Mitali
Mitali - avatar
+ 5
Begineers may find this useful when they need to practice coding python.👍👍
23rd May 2018, 12:45 PM
Mitali
Mitali - avatar
+ 5
Nice ideas!
24th May 2018, 3:13 PM
Robyn A
Robyn A - avatar
+ 5
mitali jadhavrao Flash thanks. i am already a programmer i can't say i am pro but i am pretty good with java for python i am just a beginner lol i am also good at c and linux shell scripting .
28th May 2018, 5:16 PM
Ammar
Ammar - avatar
+ 4
Osamah Mohammed Al-Haddad Glad I could help
24th May 2018, 3:19 PM
Mitali
Mitali - avatar
+ 4
And continue :- [ PART 3 ] 10). Ascending / Descending :- Write a program which prints the above list in Ascending and descending order. 11). Automorphic number :- An automorphic number is a number whose square "ends" in the same digits as the number itself. For example, 5^2 = 25, ends with 5 6^2= 36, ends with 6 Write a program to check if a given number is a Automorphic number or not Bonus :- After being successful in making the above code. Try to find automorphic numbers in a range Example :- Input = 6 Output = 1,5,6 12).Duck number :- A Duck number is a number which has zeroes present in it, but there should be no zero present in the beginning of the number. For example 3210, 7056, 8430709 are all duck numbers whereas 08237, 04309 are not. 13).calculate the distance :- https://www.sololearn.com/learn/4631/?ref=app 14).Draw patterns like this :- Pattern 1). ##### #### ### ## # Pattern 2). 1 22 333 4444 55555 Check for more parts in the comments...
24th May 2018, 3:32 PM
Salman
Salman - avatar
+ 4
💫ⓢⓦⓐⓣⓘ💫 Thanks for the suggestions
24th May 2018, 3:33 PM
Salman
Salman - avatar
+ 4
Gagan Deep Singh feel free to ask for help anytime. you can ask here or you can ask your doubts in the Q&A.
26th May 2018, 3:59 PM
Salman
Salman - avatar
+ 4
Flash I am busy with some stuff right now.Ill code the solution as soon as i get free.
27th May 2018, 9:44 AM
Mitali
Mitali - avatar
+ 4
Amit Kumar Learn python the hard way. For other books refer: https://www.sololearn.com/discuss/1236686/?ref=app
27th May 2018, 11:00 AM
Mitali
Mitali - avatar
+ 4
Ashish Verma Create a login page. Create a drop down menu. Create a business card. Create a calender. Create a sign up form. Create a table of scores between two teams. Create a CV.(Try being creative with photos,charts and icons) Create a page of website of sone cafe. Create Image gallery.
27th May 2018, 9:13 PM
Mitali
Mitali - avatar