MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a python program to adding a thousand separator

  1. Home
  2. Python Programs

Write a python program to adding a thousand separator

Write a python program to adding a thousand separator

Program
def myfun():
    x = [10989767, 9876780, 9908763, 45687979]
    list2=['{:,}'.format(num) for num in x]
    print(list2)

if __name__=="__main__":
    myfun()


Output:

['10,989,767', '9,876,780', '9,908,763', '45,687,979']



More Questions


38 . Write a python program to adding a thousand separator
39 . Write a python program startswith and Endswith Methods
40 . Write a python program to print Nlargest numbers
41 . Write a python program to print Nsmallest numbers
42 . Write a python program to check two strings are Anagram or not
43 . Write a python program to checking internet speed
44 . Write a python program to print reserved keywords
45 . Write a python program to print properties and methods
46 . Write a python program to open a website using python
47 . Write a python program to print most frequent letter in a string
48 . Write a python program to check memory sizes of list ,set ,tuple



For latest job updates join Telegram Channel: https://t.me/sateeshm

Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java Program to Find the sum of the digits of a number

Write a Java program to convert a binary number to decimal number

Write a Java program to convert seconds to hour, minute and seconds

Write a Java program to print ‘Hello World!’ on screen

Write a Program to find second largest number in an array

Python Practice Programs

Python Program to Replace all Occurrences of ‘a’ with $ in a String

Write a Python Program to Convert Decimal to Binary, Octal and Hexadecimal.

Write a python program to Find the index of the smallest number in the list

Write a python program to sort list with sorted & lambda

Write a Python Program to check armstrong number of n digits

Java Quiz

Java Quiz - 13

Java Quiz - 7

Java Quiz - 20

Java Quiz - 14

Java Quiz - 9

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
New Updates
MSK Technologies
© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs